Allow sk_close(NULL).
This commit is contained in:
parent
b3155b3399
commit
00c0c18aea
1 changed files with 1 additions and 1 deletions
|
@ -698,7 +698,7 @@ bad:
|
|||
void
|
||||
sk_close(sock *s)
|
||||
{
|
||||
if (s->entered)
|
||||
if (s && s->entered)
|
||||
s->type = SK_DELETED;
|
||||
else
|
||||
rfree(s);
|
||||
|
|
Loading…
Reference in a new issue