Fix DoKexDhReply to reject the pubkey without the callback

pull/917/head
Yosuke Shimizu 2026-04-15 10:01:04 +09:00
parent 9c8b4e8a2c
commit c9b8d19ff1
1 changed files with 2 additions and 2 deletions

View File

@ -5818,8 +5818,8 @@ static int DoKexDhReply(WOLFSSH* ssh, byte* buf, word32 len, word32* idx)
}
}
else {
WLOG(WS_LOG_DEBUG, "DKDR: no public key check callback, accepted");
ret = WS_SUCCESS;
WLOG(WS_LOG_DEBUG, "DKDR: no public key check callback, rejected");
ret = WS_PUBKEY_REJECTED_E;
}
}