isimodem: fix crash in gprs

There was a crash if gprs was removed while creating context.
This commit is contained in:
Pekka Pessi 2011-01-12 21:24:12 +02:00 committed by Aki Niemi
parent 321bd16eb1
commit fef6de49af
1 changed files with 3 additions and 0 deletions

View File

@ -199,6 +199,9 @@ static void info_pp_read_resp_cb(const GIsiMessage *msg, void *opaque)
uint8_t count = GPDS_MAX_CONTEXT_COUNT;
GIsiSubBlockIter iter;
if (g_isi_msg_error(msg) == -ESHUTDOWN)
return;
if (g_isi_msg_error(msg) < 0)
goto out;