mirror of git://git.sysmocom.de/ofono
gatppp: Ensure created GAtPPP object is not null
This commit is contained in:
parent
7e5ccc18d7
commit
5405d0860f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue