gatserver: Add NULL check to avoid crash

Dundee is not waiting to receive the NO CARRIER notification
to close the IO channel with oFono so that oFono is trying to
send a NO CARRIER although GAtServer is removed.
This commit is contained in:
Guillaume Zajac 2012-06-26 10:12:59 +02:00 committed by Denis Kenzior
parent 05bf01991d
commit 2bf8bb9d45
1 changed files with 3 additions and 0 deletions

View File

@ -222,6 +222,9 @@ static inline void send_final_numeric(GAtServer *server, GAtServerResult result)
void g_at_server_send_final(GAtServer *server, GAtServerResult result)
{
if (server == NULL)
return;
if (server->final_sent != FALSE)
return;