mirror of https://github.com/wolfSSL/wolfssh.git
Fix off by one error in SCP command processing.
parent
915c1bced9
commit
1ad4ea3232
|
@ -1259,7 +1259,7 @@ int ReceiveScpMessage(WOLFSSH* ssh)
|
|||
return sz;
|
||||
|
||||
/* null-terminate request, replace newline */
|
||||
buf[sz-1] = '\0';
|
||||
buf[sz] = '\0';
|
||||
|
||||
switch (buf[0]) {
|
||||
case 'C':
|
||||
|
|
Loading…
Reference in New Issue