diff options
Diffstat (limited to 'networking/libiproute/utils.c')
-rw-r--r-- | networking/libiproute/utils.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c index 552f4bf77..f92179c40 100644 --- a/networking/libiproute/utils.c +++ b/networking/libiproute/utils.c | |||
@@ -263,10 +263,7 @@ int matches(char *cmd, char *pattern) | |||
263 | { | 263 | { |
264 | int len = strlen(cmd); | 264 | int len = strlen(cmd); |
265 | 265 | ||
266 | if (len > strlen(pattern)) { | 266 | return strncmp(pattern, cmd, len); |
267 | return -1; | ||
268 | } | ||
269 | return memcmp(pattern, cmd, len); | ||
270 | } | 267 | } |
271 | 268 | ||
272 | int inet_addr_match(inet_prefix * a, inet_prefix * b, int bits) | 269 | int inet_addr_match(inet_prefix * a, inet_prefix * b, int bits) |