diff options
Diffstat (limited to 'networking/libiproute/ll_map.c')
-rw-r--r-- | networking/libiproute/ll_map.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c index 46c873faa..24487eb3d 100644 --- a/networking/libiproute/ll_map.c +++ b/networking/libiproute/ll_map.c @@ -17,6 +17,7 @@ #include "libnetlink.h" #include "ll_map.h" +#include "libbb.h" struct idxmap { @@ -57,9 +58,7 @@ int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) break; if (im == NULL) { - im = malloc(sizeof(*im)); - if (im == NULL) - return 0; + im = xmalloc(sizeof(*im)); im->next = *imp; im->index = ifi->ifi_index; *imp = im; |