p2pd: use the new olsr_realloc function
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 21 Apr 2016 09:23:11 +0000 (11:23 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 21 Apr 2016 09:23:26 +0000 (11:23 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/p2pd/src/NetworkInterfaces.c

index f11fb64..8c59a3e 100644 (file)
@@ -339,7 +339,7 @@ CreateNonOlsrNetworkInterfaces(struct interface_olsr *skipThisIntf)
   ifc.ifc_buf = NULL;
   for (;;) {
     ifc.ifc_len = sizeof(struct ifreq) * numreqs;
-    ifc.ifc_buf = realloc(ifc.ifc_buf, ifc.ifc_len);
+    ifc.ifc_buf = olsr_realloc(ifc.ifc_buf, ifc.ifc_len, "P2PD: CreateNonOlsrNetworkInterfaces ifc");
 
     if (ioctl(skfd, SIOCGIFCONF, &ifc) < 0) {
       P2pdPError("ioctl(SIOCGIFCONF) error");