account for emptying directory stack

pull/85/head
Jacob Barthelmeh 2018-08-06 15:53:12 -06:00
parent 4b84b10f8c
commit ed68e57f64
1 changed files with 3 additions and 0 deletions

View File

@ -1087,6 +1087,9 @@ static int ParseBasePathHelper(WOLFSSH* ssh, int cmdSz)
}
else {
ret = ScpPopDir(&ctx, ssh->ctx->heap);
if (ret == WS_SCP_DIR_STACK_EMPTY_E) {
ret = WS_SUCCESS; /* is ok to empty the directory stack here */
}
}
/* default case of directory */