diff options
author | Martin Mares <mj@ucw.cz> | 2000-04-26 01:07:47 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-04-26 01:07:47 +0200 |
commit | 00c0c18aea40dd39efc275e24ad9d5e12a873a32 (patch) | |
tree | 88ad4b493b5a434f692d02d2fe7ab0d2f741d29e /sysdep | |
parent | b3155b3399d84bb2dae8441171aa73236d790048 (diff) | |
download | bird-00c0c18aea40dd39efc275e24ad9d5e12a873a32.tar bird-00c0c18aea40dd39efc275e24ad9d5e12a873a32.zip |
Allow sk_close(NULL).
Diffstat (limited to 'sysdep')
-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); |