]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes crash on BSD.
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 28 Jul 2011 11:50:02 +0000 (13:50 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 28 Jul 2011 11:50:02 +0000 (13:50 +0200)
sysdep/bsd/krt-sock.c

index 81f0013cd379ab003d9b155028e521f8c492247a..9e3dcfeaee15036c38be092305213e3b9fe039bd 100644 (file)
@@ -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;
 }