projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a8e20e
)
system-linux: fix segfault on alloc failure in system_if_check()
author
Hans Dedecker
<dedeckeh@gmail.com>
Sat, 14 Apr 2018 19:05:25 +0000
(21:05 +0200)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Sat, 14 Apr 2018 19:12:20 +0000
(21:12 +0200)
Detected by Coverity in CID
1433686
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index b839b4c7723d60c3a9e6268c98f0e15901ef5f56..993320175c6c8db1ece3a049a07d6986b3a70e96 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;