summaryrefslogtreecommitdiff
path: root/proto-shell.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-07-24 21:18:00 +0200
committerSteven Barth <steven@midlink.org>2014-07-24 21:18:00 +0200
commit4156ba83483d0f1203fd17159974ae958325368c (patch)
treebf154f7346e735d240a7bddcbdb0f9d7d9bcf5b1 /proto-shell.c
parent5844d3caa26f5f8810476836a8b711107e4ba8d7 (diff)
downloadnetifd-4156ba83483d0f1203fd17159974ae958325368c.tar.gz
proto-shell: don't accept up-notifications in teardown state
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'proto-shell.c')
-rw-r--r--proto-shell.c2
1 files changed, 1 insertions, 1 deletions
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;
}