diff options
author | Guillaume Zajac <guillaume.zajac@linux.intel.com> | 2012-06-26 10:12:59 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-06-24 17:40:59 -0500 |
commit | 2bf8bb9d45316a835af6d0abfddcdd5838f9a69e (patch) | |
tree | af889713e85c17cedb358b9194a71e77772502a5 /gatchat | |
parent | 05bf01991d15645ec78e5447b3bab12e752b2a9e (diff) | |
download | ofono-2bf8bb9d45316a835af6d0abfddcdd5838f9a69e.tar.bz2 |
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.
Diffstat (limited to 'gatchat')
-rw-r--r-- | gatchat/gatserver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c index 7c87c7ae..e3cbb8f0 100644 --- a/gatchat/gatserver.c +++ b/gatchat/gatserver.c @@ -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; |