0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 20:58:44 +00:00

Allow sk_close(NULL).

This commit is contained in:
Martin Mares 2000-04-25 23:07:47 +00:00
parent b3155b3399
commit 00c0c18aea

View File

@ -698,7 +698,7 @@ bad:
void void
sk_close(sock *s) sk_close(sock *s)
{ {
if (s->entered) if (s && s->entered)
s->type = SK_DELETED; s->type = SK_DELETED;
else else
rfree(s); rfree(s);