mirror of https://github.com/wolfSSL/wolfssh.git
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.pull/435/head
parent
ec873e1088
commit
b6924ff604
|
@ -757,6 +757,7 @@ int main(int argc, char** argv)
|
||||||
else {
|
else {
|
||||||
if (ret <= (word16)-1) {
|
if (ret <= (word16)-1) {
|
||||||
port = (word16)ret;
|
port = (word16)ret;
|
||||||
|
ret = WS_SUCCESS;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
printf("Port number %d too big.\n", ret);
|
printf("Port number %d too big.\n", ret);
|
||||||
|
|
Loading…
Reference in New Issue