mirror of git://git.sysmocom.de/ofono
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:
parent
05bf01991d
commit
2bf8bb9d45
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue