proto-shell: return error in case setup fails
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 1 Apr 2019 11:53:50 +0000 (13:53 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 1 Apr 2019 20:56:23 +0000 (22:56 +0200)
commit361b3e404ccf093afa58b147ff18df1b17f6016d
tree842765a0a122a16f3291a454198f130ea16825a4
parenta97297d83e427685d316a170b769922083c02794
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>
proto-shell.c