summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libnet/src/libnet_if_addr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libnet/src/libnet_if_addr.c b/libnet/src/libnet_if_addr.c
index 5128b71..254a4a7 100644
--- a/libnet/src/libnet_if_addr.c
+++ b/libnet/src/libnet_if_addr.c
@@ -319,11 +319,8 @@ libnet_ifaddrlist(register struct libnet_ifaddr_list **ipaddrp, char *dev, regis
if(d->flags & PCAP_IF_LOOPBACK)
continue;
- /* XXX - strdup */
ifaddrlist[i].device = strdup(d->name);
- ifaddrlist[i].addr = (uint32_t)
- strdup(iptos(((struct sockaddr_in *)
- d->addresses->addr)->sin_addr.s_addr));
+ ifaddrlist[i].addr = ((struct sockaddr_in *)d->addresses->addr)->sin_addr.s_addr;
++i;
++nipaddr;
}