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

Fixed CORE-4058

This commit is contained in:
alexpeshkoff 2013-03-06 11:33:08 +00:00
parent bdfaa69ba6
commit af11f55815

View File

@ -1252,7 +1252,7 @@ static bool accept_connection(rem_port* port, const P_CNCT* cnct)
case CNCT_group: case CNCT_group:
{ {
const size_t length = id.getClumpLength(); const size_t length = id.getClumpLength();
if (length != 0) if (length <= sizeof(eff_gid) && length > 0)
{ {
eff_gid = 0; eff_gid = 0;
memcpy(&eff_gid, id.getBytes(), length); memcpy(&eff_gid, id.getBytes(), length);