diff options
author | Anders Svensson <[email protected]> | 2015-02-16 11:32:53 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2015-03-04 08:56:33 +0100 |
commit | a63a93e6f16368fb82d24b8efd8f8ff9aabf8013 (patch) | |
tree | 841a0c6b99971b5b7931dbc1e0a8d6bcb4da256f /lib/diameter/src/base/diameter_types.erl | |
parent | ebe60da137dafe659d9577e1c6411bcc1ea431af (diff) | |
download | otp-a63a93e6f16368fb82d24b8efd8f8ff9aabf8013.tar.gz otp-a63a93e6f16368fb82d24b8efd8f8ff9aabf8013.tar.bz2 otp-a63a93e6f16368fb82d24b8efd8f8ff9aabf8013.zip |
Fix handling of length errors on Grouped AVPs
The decode of a Grouped AVP ignored the case that extracting component
AVPs with diameter_codec:collect_avps/1 returned a tuple, in the case of
a truncated AVP header.
Diffstat (limited to 'lib/diameter/src/base/diameter_types.erl')
-rw-r--r-- | lib/diameter/src/base/diameter_types.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_types.erl b/lib/diameter/src/base/diameter_types.erl index ca3338be5f..442d90c98b 100644 --- a/lib/diameter/src/base/diameter_types.erl +++ b/lib/diameter/src/base/diameter_types.erl @@ -75,7 +75,7 @@ %% message indicating this error MUST include the offending AVPs %% within a Failed-AVP AVP. %% --define(INVALID_LENGTH(Bin), erlang:error({'DIAMETER', 5014, Bin})). +-define(INVALID_LENGTH(Bitstr), erlang:error({'DIAMETER', 5014, Bitstr})). %% ------------------------------------------------------------------------- %% 3588, 4.2. Basic AVP Data Formats |