summaryrefslogtreecommitdiffstats
path: root/gatchat/gatppp.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-05-23 23:00:06 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-05-24 12:10:22 -0500
commit5405d0860f9578c97ca66716cb5f1a5478d8102f (patch)
tree2487b00c75fd01b0d4ac4be6a59d2d78964c6f34 /gatchat/gatppp.c
parent7e5ccc18d77bb0919519747647f7f6559d313830 (diff)
downloadofono-5405d0860f9578c97ca66716cb5f1a5478d8102f.tar.bz2
gatppp: Ensure created GAtPPP object is not null
Diffstat (limited to 'gatchat/gatppp.c')
-rw-r--r--gatchat/gatppp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 6d27dd6f..8229b523 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -682,7 +682,8 @@ GAtPPP *g_at_ppp_server_new_full(GAtIO *io, const char *local, int fd)
ppp = ppp_init_common(hdlc, TRUE, ip);
/* Set the fd value returned by ConnMan */
- ppp->fd = fd;
+ if (ppp != NULL)
+ ppp->fd = fd;
g_at_hdlc_unref(hdlc);