mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 17:23:04 +01:00
Fixed my previous commit
This commit is contained in:
parent
973751aa80
commit
a2720f8e51
@ -315,7 +315,7 @@ bool_t xdr_protocol(XDR* xdrs, PACKET* p)
|
||||
MAP(xdr_short, reinterpret_cast<SSHORT&>(connect->p_cnct_count));
|
||||
|
||||
// report protocol failure in case of too many suggested versions
|
||||
if (connect->p_cnct_count > FB_NELEM(connect->p_cnct_versions))
|
||||
if (connect->p_cnct_count >= FB_NELEM(connect->p_cnct_versions))
|
||||
{
|
||||
return P_FALSE(xdrs, p);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user