From 91bd71e996788d33c15fc19ea72ca849ff6a3604 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 16 Feb 2012 18:36:23 +0100 Subject: udev: Add sanity check for ports on old Option devices --- plugins/udevng.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/udevng.c') diff --git a/plugins/udevng.c b/plugins/udevng.c index a498ae1c..756de02b 100644 --- a/plugins/udevng.c +++ b/plugins/udevng.c @@ -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); -- cgit v1.2.3