diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-09 19:57:27 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-09 19:57:27 +0200 |
commit | 82bd6990581a6a424fcabe8e5da9af885d531e07 (patch) | |
tree | b704e20611053648b7054b93a707f891f3a27e34 /proto-static.c | |
parent | 275a09d6c5ca1c1b03cfc74a5f856c7304adc80c (diff) |
handle static proto setup failure
Diffstat (limited to 'proto-static.c')
-rw-r--r-- | proto-static.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proto-static.c b/proto-static.c index 3868ab7..3734f09 100644 --- 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; } |