diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2011-07-28 13:50:02 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2011-07-28 13:50:02 +0200 |
commit | 14272097df989808790673521f643053f898aa8c (patch) | |
tree | 20b5b7dc7445996fae63142a959e09ac69a4ed72 /sysdep/bsd | |
parent | 4160a9dd9416ee5afd215750bdd6c6e7a4e7ed1f (diff) | |
download | bird-14272097df989808790673521f643053f898aa8c.tar bird-14272097df989808790673521f643053f898aa8c.zip |
Fixes crash on BSD.
Diffstat (limited to 'sysdep/bsd')
-rw-r--r-- | sysdep/bsd/krt-sock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index 81f0013..9e3dcfe 100644 --- a/sysdep/bsd/krt-sock.c +++ b/sysdep/bsd/krt-sock.c @@ -697,7 +697,8 @@ krt_set_construct(struct krt_config *c UNUSED) void krt_set_shutdown(struct krt_proto *x UNUSED, int last UNUSED) { - mb_free(krt_buffer); + if (krt_buffer) + mb_free(krt_buffer); krt_buffer = NULL; } |