Merge pull request #85 from JacobBarthelmeh/testing

account for emptying directory stack
pull/87/head
Chris Conlon 2018-08-07 09:39:24 -06:00 committed by GitHub
commit f1678767ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 */