]> git.proxmox.com Git - mirror_frr.git/blobdiff - nhrpd/zbuf.c
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / nhrpd / zbuf.c
index 65232a309318b4cb9deae4e17195b6a87ea6ab41..c662295083e79063f814c14bfeecdde45fd03880 100644 (file)
@@ -7,7 +7,10 @@
  * (at your option) any later version.
  */
 
-#define _GNU_SOURCE
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <string.h>
 #include <unistd.h>
 #include <errno.h>
@@ -25,8 +28,6 @@ struct zbuf *zbuf_alloc(size_t size)
        struct zbuf *zb;
 
        zb = XMALLOC(MTYPE_ZBUF_DATA, sizeof(*zb) + size);
-       if (!zb)
-               return NULL;
 
        zbuf_init(zb, zb + 1, size, 0);
        zb->allocated = 1;