summaryrefslogtreecommitdiff
path: root/source4/lib/netif
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/netif')
-rw-r--r--source4/lib/netif/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/netif/interface.c b/source4/lib/netif/interface.c
index 3555170123..c73a2e3d7b 100644
--- a/source4/lib/netif/interface.c
+++ b/source4/lib/netif/interface.c
@@ -83,7 +83,7 @@ static void add_interface(struct in_addr ip, struct in_addr nmask)
return;
}
- iface = (struct interface *)malloc(sizeof(*iface));
+ iface = malloc_p(struct interface);
if (!iface) return;
ZERO_STRUCTPN(iface);