Skip to content

Commit a193e02

Browse files
author
Samir Hussain
committed
Adding defensive code to deal with error when pppd exits
1 parent 2d73d69 commit a193e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

call.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ void destroy_call (struct call *c)
402402
if (c->addr)
403403
unreserve_addr (c->addr);
404404

405-
if (c->lns->localrange)
405+
if (c->lns && c->lns->localrange)
406406
unreserve_addr (c->lns->localaddr);
407407
#endif
408408

0 commit comments

Comments
 (0)