- fixed seg fault bug (introduced in 0.9.1) in unbuffered reporting

pull/6/head
Michael Zillgith 9 years ago
parent dae7b74085
commit b612eed906

@ -31,10 +31,10 @@
#include "simple_allocator.h"
#include "mem_alloc_linked_list.h"
#include "reporting.h"
#include "mms_mapping_internal.h"
#include "mms_value_internal.h"
#include "conversions.h"
#include "reporting.h"
#include <string.h>
#ifndef DEBUG_IED_SERVER
@ -602,6 +602,7 @@ updateReportDataset(MmsMapping* mapping, ReportControl* rc, MmsValue* newDatSet,
success = true;
if (rc->buffered)
rc->isBuffering = true;
goto exit_function;
@ -770,7 +771,7 @@ createUnbufferedReportControlBlock(ReportControlBlock* reportControlBlock,
rcb->typeSpec.structure.elementCount = structSize;
rcb->typeSpec.structure.elements = (MmsVariableSpecification**) GLOBAL_CALLOC(12,
rcb->typeSpec.structure.elements = (MmsVariableSpecification**) GLOBAL_CALLOC(structSize,
sizeof(MmsVariableSpecification*));
MmsVariableSpecification* namedVariable =

Loading…
Cancel
Save