From 5405d0860f9578c97ca66716cb5f1a5478d8102f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 23 May 2011 23:00:06 -0500 Subject: [PATCH] gatppp: Ensure created GAtPPP object is not null --- gatchat/gatppp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);