diff options
author | Anders Svensson <[email protected]> | 2012-12-20 16:34:02 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2013-01-15 19:05:29 +0100 |
commit | 656322a21eb5412f3c58573fa167bc74ed991231 (patch) | |
tree | b95ef1a29838f03fd751a3ad135052403af19363 /lib/diameter/src | |
parent | d5de2e1ffd6403f5d7ec62e6ce8da508e1cb1239 (diff) | |
download | otp-656322a21eb5412f3c58573fa167bc74ed991231.tar.gz otp-656322a21eb5412f3c58573fa167bc74ed991231.tar.bz2 otp-656322a21eb5412f3c58573fa167bc74ed991231.zip |
Fix setting of Application-ID
An answer message with the E flag erroneously set the value to 0.
Diffstat (limited to 'lib/diameter/src')
-rw-r--r-- | lib/diameter/src/base/diameter_codec.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/diameter/src/base/diameter_codec.erl b/lib/diameter/src/base/diameter_codec.erl index a94d37f7a8..0b0bfe3f0a 100644 --- a/lib/diameter/src/base/diameter_codec.erl +++ b/lib/diameter/src/base/diameter_codec.erl @@ -193,9 +193,11 @@ encode_avps(Avps) -> msg_header(Mod, 'answer-message' = MsgName, Header) -> ?BASE = Mod, - #diameter_header{cmd_code = Code} = Header, - {_, Flags, ApplId} = ?BASE:msg_header(MsgName), - {Code, Flags, ApplId}; + #diameter_header{application_id = Aid, + cmd_code = Code} + = Header, + {-1, Flags, ?DIAMETER_APP_ID_COMMON} = ?BASE:msg_header(MsgName), + {Code, Flags, Aid}; msg_header(Mod, MsgName, _) -> Mod:msg_header(MsgName). |