summaryrefslogtreecommitdiffstats
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-26 01:07:47 +0200
committerMartin Mares <mj@ucw.cz>2000-04-26 01:07:47 +0200
commit00c0c18aea40dd39efc275e24ad9d5e12a873a32 (patch)
tree88ad4b493b5a434f692d02d2fe7ab0d2f741d29e /sysdep/unix/io.c
parentb3155b3399d84bb2dae8441171aa73236d790048 (diff)
downloadbird-00c0c18aea40dd39efc275e24ad9d5e12a873a32.tar
bird-00c0c18aea40dd39efc275e24ad9d5e12a873a32.zip
Allow sk_close(NULL).
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r--sysdep/unix/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index aff144b..6f2c08e 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -698,7 +698,7 @@ bad:
void
sk_close(sock *s)
{
- if (s->entered)
+ if (s && s->entered)
s->type = SK_DELETED;
else
rfree(s);