]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Allow sk_close(NULL).
authorMartin Mares <mj@ucw.cz>
Tue, 25 Apr 2000 23:07:47 +0000 (23:07 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 25 Apr 2000 23:07:47 +0000 (23:07 +0000)
sysdep/unix/io.c

index aff144b6a4a7984aca696435dad03b88b2df508e..6f2c08e46abc03ec7e64c8e18022c3b9acd82cf5 100644 (file)
@@ -698,7 +698,7 @@ bad:
 void
 sk_close(sock *s)
 {
-  if (s->entered)
+  if (s && s->entered)
     s->type = SK_DELETED;
   else
     rfree(s);