gatppp: Ensure created GAtPPP object is not null

This commit is contained in:
Denis Kenzior 2011-05-23 23:00:06 -05:00
parent 7e5ccc18d7
commit 5405d0860f
1 changed files with 2 additions and 1 deletions

View File

@ -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);