Fix length error on abort user message.

BER length of abort payload must exclude, not include tag and length.
pull/331/head^2
Steffen Conrad 4 years ago committed by GitHub
parent 40b8f99201
commit 722e7bbaf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -789,7 +789,7 @@ IsoPresentation_createAbortUserMessage(IsoPresentation* self, BufferChain writeB
contentLength = +encodeUserData(NULL, 0, payload, false, self->acseContextId);
contentLength += BerEncoder_determineLengthSize(contentLength) + 1;
contentLength += BerEncoder_determineLengthSize(contentLength) - 1;
uint8_t* buffer = writeBuffer->buffer;
int bufPos = 0;

Loading…
Cancel
Save