- fixed bug in MmsValue_encodeToBuffer function. Encoding to MMS_INTEGER/MMS_UNSIGNED was wrong.

pull/6/head
Michael Zillgith 11 years ago
parent 30a64e2914
commit e32a7a3c53

@ -984,6 +984,7 @@ MmsValue_cloneToBuffer(MmsValue* self, uint8_t* destinationAddress)
case MMS_INTEGER:
case MMS_UNSIGNED:
{
newValue->value.integer = (Asn1PrimitiveValue*) destinationAddress;
Asn1PrimitiveValue* newAsn1Value = (Asn1PrimitiveValue*) destinationAddress;
memcpy(destinationAddress, self->value.integer, sizeof(Asn1PrimitiveValue));
destinationAddress += sizeof(Asn1PrimitiveValue);

@ -204,7 +204,6 @@ void /* send information report for a named variable list */
MmsServerConnection_sendInformationReportVMDSpecific(MmsServerConnection* self, char* itemId, LinkedList values,
bool handlerMode)
{
uint32_t variableAccessSpecSize = 0;
uint32_t objectNameSize = 0;

Loading…
Cancel
Save