projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1179734
)
ubus: Fix possible segfault
author
Hans Dedecker
<dedeckeh@gmail.com>
Mon, 1 Feb 2016 09:56:17 +0000
(10:56 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 1 Feb 2016 10:09:57 +0000
(11:09 +0100)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
ubus.c
patch
|
blob
|
history
diff --git
a/ubus.c
b/ubus.c
index 454b42d167562010ec53059bd157948d11e0de03..41843011c376d26b22a08bb223cac4330537ea0a 100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-969,6
+969,9
@@
static void netifd_add_iface_object(void)
int i;
methods = calloc(1, sizeof(iface_object_methods));
+ if (!methods)
+ return;
+
memcpy(methods, iface_object_methods, sizeof(iface_object_methods));
iface_object.methods = methods;