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:
a11944f
)
fix return code in interface_ip_add_target_route
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 18 Jun 2012 21:18:31 +0000
(23:18 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 18 Jun 2012 21:18:31 +0000
(23:18 +0200)
interface-ip.c
patch
|
blob
|
history
diff --git
a/interface-ip.c
b/interface-ip.c
index 3957b4866df5624e00e21e1056faad3beaba46a2..6699d2e5616992c22c8c8236d152db6069a04ecd 100644
(file)
--- a/
interface-ip.c
+++ b/
interface-ip.c
@@
-144,7
+144,7
@@
interface_ip_add_target_route(union if_addr *addr, bool v6)
route = calloc(1, sizeof(*route));
if (!route)
- return
false
;
+ return
NULL
;
route->flags = v6 ? DEVADDR_INET6 : DEVADDR_INET4;
route->mask = v6 ? 128 : 32;