diff options
-rw-r--r-- | gatchat/gatppp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c index 1e6862a0..8bd50bce 100644 --- a/gatchat/gatppp.c +++ b/gatchat/gatppp.c @@ -235,6 +235,10 @@ void ppp_net_up_notify(GAtPPP *ppp, const char *ip, void ppp_net_down_notify(GAtPPP *ppp) { + /* Most likely we failed to create the interface */ + if (ppp->net == NULL) + return; + ppp_net_free(ppp->net); ppp->net = NULL; } |