Fix failure in initializing the LSTAT state machine.

pull/134/head
John Safranek 2018-12-28 09:57:51 -08:00
parent bf89f60f14
commit af32ee760f
1 changed files with 1 additions and 1 deletions

View File

@ -3596,7 +3596,7 @@ static int SFTP_STAT(WOLFSSH* ssh, char* dir, WS_SFTP_FILEATRB* atr, byte type)
ssh->error = WS_MEMORY_E;
return WS_FATAL_ERROR;
}
WMEMSET(state, 0, sizeof(WS_SFTP_GET_STATE));
WMEMSET(state, 0, sizeof(WS_SFTP_LSTAT_STATE));
ssh->lstatState = state;
state->state = STATE_LSTAT_INIT;
}