From 82bd6990581a6a424fcabe8e5da9af885d531e07 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 9 Sep 2011 19:57:27 +0200 Subject: [PATCH] handle static proto setup failure --- proto-static.c | 6 +++--- 1 file 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; } -- 2.11.0