Skip to content

Commit 29bd248

Browse files
committed
Fix CI
1 parent ded534c commit 29bd248

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/api.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,12 +1809,16 @@ static word32 kbResponseLength = 4;
18091809

18101810
static int keyboardUserAuth(byte authType, WS_UserAuthData* authData, void* ctx)
18111811
{
1812-
(void) ctx;
18131812
int ret = WOLFSSH_USERAUTH_INVALID_AUTHTYPE;
18141813

1814+
(void)ctx;
1815+
18151816
if (authType == WOLFSSH_USERAUTH_KEYBOARD) {
18161817
AssertIntEQ(1, authData->sf.keyboard.promptCount);
1817-
AssertStrEQ("KB Auth Password: ", authData->sf.keyboard.prompts[0]);
1818+
AssertNotNull(authData->sf.keyboard.prompts);
1819+
AssertNotNull(authData->sf.keyboard.prompts[0]);
1820+
AssertStrEQ("KB Auth Password: ",
1821+
(const char*)authData->sf.keyboard.prompts[0]);
18181822

18191823
authData->sf.keyboard.responseCount = 1;
18201824
authData->sf.keyboard.responseLengths = &kbResponseLength;
@@ -1902,6 +1906,7 @@ static void test_wolfSSH_KeyboardInteractive(void)
19021906
THREAD_TYPE serThread;
19031907

19041908
WMEMSET(&ser, 0, sizeof(func_args));
1909+
WMEMSET(&ready, 0, sizeof(tcp_ready));
19051910

19061911
argsCount = 0;
19071912
args[argsCount++] = ".";

0 commit comments

Comments
 (0)