Skip to content

Commit c9b8d19

Browse files
Fix DoKexDhReply to reject the pubkey without the callback
1 parent 9c8b4e8 commit c9b8d19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/internal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5818,8 +5818,8 @@ static int DoKexDhReply(WOLFSSH* ssh, byte* buf, word32 len, word32* idx)
58185818
}
58195819
}
58205820
else {
5821-
WLOG(WS_LOG_DEBUG, "DKDR: no public key check callback, accepted");
5822-
ret = WS_SUCCESS;
5821+
WLOG(WS_LOG_DEBUG, "DKDR: no public key check callback, rejected");
5822+
ret = WS_PUBKEY_REJECTED_E;
58235823
}
58245824
}
58255825

0 commit comments

Comments
 (0)