]> git.proxmox.com Git - mirror_frr.git/commit - lib/if.c
lib/if: fix interface name comparison
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 2 May 2022 13:26:11 +0000 (15:26 +0200)
committerNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 30 May 2022 12:19:36 +0000 (14:19 +0200)
commitf33abb817d81d2fb0f2b3a31ba690829f56dd2b8
tree440b28e4362cea4ad7536b188772913b31abffcc
parent8bc5979049cd188feb927105856f91356949c5e8
lib/if: fix interface name comparison

Using strtol() to compare two strings is a bad idea.
Before the patch, if_cmp_name_func() may confuse foo001 and foo1.

PR=79407
Fixes: 106d2fd572c1 ("2003-08-01 Cougar <cougar@random.ee>")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Tested-by: Aurélien Degeorges <aurelien.degeorges@6wind.com>
Acked-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/if.c