summaryrefslogtreecommitdiff
path: root/sysdep/unix
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-25 23:07:47 +0000
committerMartin Mares <mj@ucw.cz>2000-04-25 23:07:47 +0000
commit00c0c18aea40dd39efc275e24ad9d5e12a873a32 (patch)
tree88ad4b493b5a434f692d02d2fe7ab0d2f741d29e /sysdep/unix
parentb3155b3399d84bb2dae8441171aa73236d790048 (diff)
Allow sk_close(NULL).
Diffstat (limited to 'sysdep/unix')
-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 aff144b6..6f2c08e4 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);