OSDN Git Service
(root)
/
pinky-bar
/
pinky-bar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1959724
)
Misc
author
wifiextender
<router@archlinux.info>
Sun, 21 Aug 2016 07:57:24 +0000
(09:57 +0200)
committer
wifiextender
<router@archlinux.info>
Sun, 21 Aug 2016 07:57:24 +0000
(09:57 +0200)
src/net.c
patch
|
blob
|
history
diff --git
a/src/net.c
b/src/net.c
index
ff3f8a7
..
1fdd918
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-439,12
+439,12
@@
get_nic_info(char *str1, char *str2) {
/* No, it's not Men In Black acronym */
int mib[] = { CTL_NET, PF_ROUTE, 0, 0, NET_RT_DUMP, 0 };
if (0 != (sysctl(mib, 6, NULL, &needed, NULL, 0))) {
-
FUNC_FAILED("sysctl()")
;
+
return
;
}
buf = (char *)malloc(needed);
if (NULL == buf) {
-
FUNC_FAILED("malloc()")
;
+
return
;
}
if (0 != (sysctl(mib, 6, buf, &needed, NULL, 0))) {
goto error;