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:
275a09d
)
handle static proto setup failure
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 9 Sep 2011 17:57:27 +0000
(19:57 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 9 Sep 2011 17:57:27 +0000
(19:57 +0200)
proto-static.c
patch
|
blob
|
history
diff --git
a/proto-static.c
b/proto-static.c
index 3868ab77bc5e78d426adf480e8111e2aadc5e943..3734f095db90ebd262b32472d7a5ce0c3e78c5d7 100644
(file)
--- a/
proto-static.c
+++ b/
proto-static.c
@@
-205,10
+205,10
@@
static_handler(struct interface_proto_state *proto,
switch (cmd) {
case PROTO_CMD_SETUP:
- if (static_proto_setup(state))
-
break
;
+ if (
!
static_proto_setup(state))
+
return -1
;
- /* fall through */
+ break;
case PROTO_CMD_TEARDOWN:
break;
}