diff options
Diffstat (limited to 'networking/interface.c')
-rw-r--r-- | networking/interface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/interface.c b/networking/interface.c index 204febf7d..ea02f4cc9 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -521,8 +521,7 @@ static int if_readconf(void) | |||
521 | ifc.ifc_len = sizeof(struct ifreq) * numreqs; | 521 | ifc.ifc_len = sizeof(struct ifreq) * numreqs; |
522 | ifc.ifc_buf = xrealloc(ifc.ifc_buf, ifc.ifc_len); | 522 | ifc.ifc_buf = xrealloc(ifc.ifc_buf, ifc.ifc_len); |
523 | 523 | ||
524 | if (ioctl(skfd, SIOCGIFCONF, &ifc) < 0) { | 524 | if (ioctl_or_warn(skfd, SIOCGIFCONF, &ifc) < 0) { |
525 | bb_perror_msg("SIOCGIFCONF"); | ||
526 | goto out; | 525 | goto out; |
527 | } | 526 | } |
528 | if (ifc.ifc_len == sizeof(struct ifreq) * numreqs) { | 527 | if (ifc.ifc_len == sizeof(struct ifreq) * numreqs) { |