diff options
Diffstat (limited to 'networking/libiproute/ll_map.c')
-rw-r--r-- | networking/libiproute/ll_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c index 3412dc763..2ed7fbbb3 100644 --- a/networking/libiproute/ll_map.c +++ b/networking/libiproute/ll_map.c | |||
@@ -172,7 +172,7 @@ int xll_name_to_index(const char *const name) | |||
172 | #endif | 172 | #endif |
173 | 173 | ||
174 | sock_fd = socket(AF_INET, SOCK_DGRAM, 0); | 174 | sock_fd = socket(AF_INET, SOCK_DGRAM, 0); |
175 | if (sock_fd) { | 175 | if (sock_fd >= 0) { |
176 | struct ifreq ifr; | 176 | struct ifreq ifr; |
177 | int tmp; | 177 | int tmp; |
178 | 178 | ||