From 4156ba83483d0f1203fd17159974ae958325368c Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 24 Jul 2014 21:18:00 +0200 Subject: [PATCH 1/1] proto-shell: don't accept up-notifications in teardown state Signed-off-by: Steven Barth --- proto-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto-shell.c b/proto-shell.c index 7e9cbcf..d85a8d7 100644 --- a/proto-shell.c +++ b/proto-shell.c @@ -432,7 +432,7 @@ proto_shell_update_link(struct proto_shell_state *state, struct blob_attr *data, return UBUS_STATUS_INVALID_ARGUMENT; up = blobmsg_get_bool(tb[NOTIFY_LINK_UP]); - if (!up) { + if (!up || state->sm == S_TEARDOWN) { state->proto.proto_event(&state->proto, IFPEV_LINK_LOST); return 0; } -- 2.11.0