@@ -328,13 +328,12 @@ bool_t xdr_protocol(RemoteXdr* xdrs, PACKET* p)
328
328
329
329
MAP (xdr_cstring_const, connect->p_cnct_user_id );
330
330
331
- const size_t CNCT_VERSIONS = FB_NELEM (connect->p_cnct_versions );
332
331
tail = connect->p_cnct_versions ;
333
332
for (USHORT i = 0 ; i < connect->p_cnct_count ; i++, tail++)
334
333
{
335
334
// ignore the rest of protocols in case of too many suggested versions
336
335
p_cnct::p_cnct_repeat dummy;
337
- if (i >= CNCT_VERSIONS )
336
+ if (i >= MAX_CNCT_VERSIONS )
338
337
{
339
338
tail = &dummy;
340
339
}
@@ -347,9 +346,9 @@ bool_t xdr_protocol(RemoteXdr* xdrs, PACKET* p)
347
346
}
348
347
349
348
// ignore the rest of protocols in case of too many suggested versions
350
- if (connect->p_cnct_count > CNCT_VERSIONS )
349
+ if (connect->p_cnct_count > MAX_CNCT_VERSIONS )
351
350
{
352
- connect->p_cnct_count = CNCT_VERSIONS ;
351
+ connect->p_cnct_count = MAX_CNCT_VERSIONS ;
353
352
}
354
353
355
354
DEBUG_PRINTSIZE (xdrs, p->p_operation );
@@ -711,7 +710,7 @@ bool_t xdr_protocol(RemoteXdr* xdrs, PACKET* p)
711
710
// p_sqlst_buffer_length was USHORT in older versions
712
711
fixupLength (xdrs, prep_stmt->p_sqlst_buffer_length );
713
712
714
- if (port->port_protocol >= PROTOCOL_VERSION19 )
713
+ if (port->port_protocol >= PROTOCOL_PREPARE_FLAG )
715
714
MAP (xdr_short, reinterpret_cast <SSHORT&>(prep_stmt->p_sqlst_flags ));
716
715
717
716
DEBUG_PRINTSIZE (xdrs, p->p_operation );
0 commit comments