diff options
Diffstat (limited to 'libglouglou/utils.c')
-rw-r--r-- | libglouglou/utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libglouglou/utils.c b/libglouglou/utils.c index 2f5f710..a7ceffd 100644 --- a/libglouglou/utils.c +++ b/libglouglou/utils.c @@ -205,14 +205,12 @@ get_iface(char *ip) { struct addr dst; struct intf_entry entry; intf_t *intf; - char *iface; intf = intf_open(); addr_aton(ip, &dst); if (intf_get_dst(intf, &entry, &dst) < 0) return NULL; - iface = addr_ntoa(&entry.intf_addr); intf_close(intf); - return iface; + return strdup(entry.intf_name); } |