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

Fixed possible crash when server-side authentication creates an empty plugin list

This commit is contained in:
Dmitry Starodubov 2022-10-07 14:44:33 +03:00 committed by Alexander Peshkov
parent 3f4809511a
commit af7c62315f

View File

@ -1953,9 +1953,9 @@ static bool accept_connection(rem_port* port, P_CNCT* connect, PACKET* send)
HANDSHAKE_DEBUG(fprintf(stderr, "Srv: accept_connection: calls createPluginsItr\n"));
port->port_srv_auth_block->createPluginsItr();
if (port->port_srv_auth_block->plugins) // We have all required data and iterator was created
AuthServerPlugins* const plugins = port->port_srv_auth_block->plugins;
if (plugins && plugins->hasData()) // We have all required data and iterator was created
{
AuthServerPlugins* const plugins = port->port_srv_auth_block->plugins;
NoCaseString clientPluginName(port->port_srv_auth_block->getPluginName());
// If there is plugin matching client's one it will be
HANDSHAKE_DEBUG(fprintf(stderr, "Srv: accept_connection: client plugin='%s' server='%s'\n",