diff options
-rw-r--r-- | sysdep/unix/io.c | 2 |
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); |