8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 02:03:04 +01:00

op_crypt is not used here - avoid never executed code

This commit is contained in:
alexpeshkoff 2015-10-07 16:59:49 +00:00
parent c25cc1ff29
commit 2a53f5c9c5

View File

@ -6278,25 +6278,6 @@ static void authReceiveResponse(bool havePacket, ClntAuthBlock& cBlock, rem_port
packet->p_acpd.p_acpt_type &= ptype_MASK;
break;
case op_crypt:
fb_assert(!checkKeys);
{
HANDSHAKE_DEBUG(fprintf(stderr, "Cli: authReceiveResponse: Crypt answer\n"));
CSTRING* tmpKeys = REMOTE_dup_string(&packet->p_crypt.p_key);
// it was start crypt packet, receive next one
receive_response(status, rdb, packet);
// add received keys to the list of known ones
if (tmpKeys)
{
port->addServerKeys(tmpKeys);
REMOTE_free_string(tmpKeys);
}
}
// try to start crypt
cBlock.tryNewKeys(port);
return;
default:
HANDSHAKE_DEBUG(fprintf(stderr, "Cli: authReceiveResponse: Default answer\n"));
REMOTE_check_response(status, rdb, packet, checkKeys);