mdns: use the new olsr_realloc function
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 21 Apr 2016 09:23:03 +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/mdns/src/NetworkInterfaces.c

index 6330479..13818c8 100644 (file)
@@ -639,7 +639,7 @@ CreateBmfNetworkInterfaces(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, "MDNS: CreateBmfNetworkInterfaces ifc");
 
     if (ioctl(skfd, SIOCGIFCONF, &ifc) < 0) {
       BmfPError("ioctl(SIOCGIFCONF) error");