summaryrefslogtreecommitdiff
path: root/proto-shell.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2019-04-01 13:53:50 +0200
committerHans Dedecker <dedeckeh@gmail.com>2019-04-01 22:56:23 +0200
commit361b3e404ccf093afa58b147ff18df1b17f6016d (patch)
tree842765a0a122a16f3291a454198f130ea16825a4 /proto-shell.c
parenta97297d83e427685d316a170b769922083c02794 (diff)
downloadnetifd-361b3e404ccf093afa58b147ff18df1b17f6016d.tar.gz
proto-shell: return error in case setup fails
In case PROTO_CMD_SETUP cannot be handled due to an invalid state; return -1 so the calling functions are aware the PROTO_CMD_SETUP has failed. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'proto-shell.c')
-rw-r--r--proto-shell.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/proto-shell.c b/proto-shell.c
index 9653f4c..47a9568 100644
--- a/proto-shell.c
+++ b/proto-shell.c
@@ -181,11 +181,6 @@ proto_shell_handler(struct interface_proto_state *proto,
state->sm = S_SETUP;
break;
- case S_SETUP_ABORT:
- case S_TEARDOWN:
- case S_SETUP:
- return 0;
-
default:
return -1;
}