From ba8ef5c3e4e453f66fc657e51e04cdf39fd1fc1c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 4 Aug 2009 10:16:06 -0500 Subject: Fix segfault when pnn record doesn't exist --- src/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/network.c b/src/network.c index 3686614b..5bcff798 100644 --- a/src/network.c +++ b/src/network.c @@ -1269,7 +1269,7 @@ check: * retrieve it. If OPL is not there then PNN[1] will * still be used for the HPLMN and/or EHPLMN, if PNN * is present. */ - if (!sim_eons_pnn_is_empty(netreg->eons)) + if (netreg->eons && !sim_eons_pnn_is_empty(netreg->eons)) ofono_sim_read(modem, SIM_EFOPL_FILEID, sim_opl_read_cb, NULL); } -- cgit v1.2.3