projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
system-linux: fix segfault on alloc failure in system_if_check()
[project/netifd.git]
/
system-linux.c
diff --git
a/system-linux.c
b/system-linux.c
index
b839b4c
..
9933201
100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-1571,6
+1571,9
@@
int system_if_check(struct device *dev)
};
int ret = 1;
+ if (!cb)
+ return ret;
+
msg = nlmsg_alloc_simple(RTM_GETLINK, 0);
if (!msg)
goto out;