summaryrefslogtreecommitdiff
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
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 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);