mirror of https://github.com/wolfSSL/wolfssh.git
fix for windows sftp build
parent
8a00381e0c
commit
997bd8a0d0
|
@ -2172,7 +2172,7 @@ int wolfSSH_SFTP_RecvOpenDir(WOLFSSH* ssh, int reqId, byte* data, word32 maxSz)
|
||||||
}
|
}
|
||||||
WMEMCPY(dirName, data + idx, sz);
|
WMEMCPY(dirName, data + idx, sz);
|
||||||
dirName[sz] = '\0';
|
dirName[sz] = '\0';
|
||||||
if (wolfSSH_CleanPath(ssh, buf) < 0) {
|
if (wolfSSH_CleanPath(ssh, dirName) < 0) {
|
||||||
WFREE(dirName, ssh->ctx->heap, DYNTYPE_BUFFER);
|
WFREE(dirName, ssh->ctx->heap, DYNTYPE_BUFFER);
|
||||||
return WS_FATAL_ERROR;
|
return WS_FATAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue