From b6924ff604a1edead97386893375a8290708c921 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Fri, 29 Jul 2022 10:14:34 +0100 Subject: [PATCH] Fix -p breaking everything Specifying a port set `ret` to the port number instead of `WS_SUCCESS` which meant that everything after parameter passing failed silently. --- apps/wolfsshd/wolfsshd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/wolfsshd/wolfsshd.c b/apps/wolfsshd/wolfsshd.c index 415c5d2c..f0f02b84 100644 --- a/apps/wolfsshd/wolfsshd.c +++ b/apps/wolfsshd/wolfsshd.c @@ -757,6 +757,7 @@ int main(int argc, char** argv) else { if (ret <= (word16)-1) { port = (word16)ret; + ret = WS_SUCCESS; } else { printf("Port number %d too big.\n", ret);