Skip to content

Commit 63db9f1

Browse files
Add clarifying comment for empty prompts handling
Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>
1 parent 727a0c8 commit 63db9f1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/internal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13376,6 +13376,7 @@ int SendUserAuthKeyboardRequest(WOLFSSH* ssh, WS_UserAuthData* authData)
1337613376
}
1337713377
}
1337813378

13379+
/* Only check for NULL pointers if we actually have prompts */
1337913380
if (authData->sf.keyboard.promptCount > 0 &&
1338013381
(authData->sf.keyboard.prompts == NULL ||
1338113382
authData->sf.keyboard.promptLengths == NULL ||

0 commit comments

Comments
 (0)