udev: Add sanity check for ports on old Option devices
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 16 Feb 2012 17:36:23 +0000 (18:36 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 16 Feb 2012 17:36:23 +0000 (18:36 +0100)
plugins/udevng.c

index a498ae1..756de02 100644 (file)
@@ -258,6 +258,9 @@ static gboolean setup_option(struct modem_info *modem)
 
        }
 
+       if (aux == NULL || mdm == NULL)
+               return FALSE;
+
        DBG("aux=%s modem=%s diag=%s", aux, mdm, diag);
 
        ofono_modem_set_string(modem->modem, "Aux", aux);