diff options
Diffstat (limited to 'src/iftable.c')
-rw-r--r-- | src/iftable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/iftable.c b/src/iftable.c index 7cca66f..3a4b0cb 100644 --- a/src/iftable.c +++ b/src/iftable.c @@ -98,7 +98,8 @@ static int iftable_add(struct nlmsghdr *n, void *arg) } strcpy(this->name, RTA_DATA(cb[IFLA_IFNAME])); - list_add(&this->head, &h->ifindex_hash[hash]); + if (!found) + list_add(&this->head, &h->ifindex_hash[hash]); return 1; } |