diff --git a/src/protocol/helper.c b/src/protocol/helper.c index 8836dfd97..ea41ff92d 100644 --- a/src/protocol/helper.c +++ b/src/protocol/helper.c @@ -169,7 +169,7 @@ protocolLocalGet(ProtocolStorageType protocolStorageType, unsigned int hostId, u { MEM_CONTEXT_BEGIN(protocolHelper.memContext) { - protocolHelper.clientLocalSize = cfgOptionUInt(cfgOptProcessMax); + protocolHelper.clientLocalSize = cfgOptionUInt(cfgOptProcessMax) + 1; protocolHelper.clientLocal = (ProtocolHelperClient *)memNew( protocolHelper.clientLocalSize * sizeof(ProtocolHelperClient)); }