8
0
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:
alexpeshkoff 2006-05-29 16:36:49 +00:00
parent 973751aa80
commit a2720f8e51

View File

@ -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);
}