aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2012-07-03 14:20:24 +0200
committerAnders Svensson <[email protected]>2012-07-04 15:52:08 +0200
commit6dc7a981b5f76b1057a62c820963b20c53047d6a (patch)
tree5a8a393381371cf1e7af53c89ae7510ce151045f /lib/diameter
parentcfea5eea406ba3af96588ff458e55de9a149d9c5 (diff)
downloadotp-6dc7a981b5f76b1057a62c820963b20c53047d6a.tar.gz
otp-6dc7a981b5f76b1057a62c820963b20c53047d6a.tar.bz2
otp-6dc7a981b5f76b1057a62c820963b20c53047d6a.zip
Encode fix
The header is used when incrementing counters. Sending answers in the list form was broken because of this.
Diffstat (limited to 'lib/diameter')
-rw-r--r--lib/diameter/src/base/diameter_codec.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/diameter/src/base/diameter_codec.erl b/lib/diameter/src/base/diameter_codec.erl
index fe1212b7e0..fb109fe271 100644
--- a/lib/diameter/src/base/diameter_codec.erl
+++ b/lib/diameter/src/base/diameter_codec.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2011. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2012. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -91,7 +91,8 @@ e(_, #diameter_packet{msg = [#diameter_header{} = Hdr | As]} = Pkt) ->
Flags = make_flags(0, Hdr),
- Pkt#diameter_packet{bin = <<Vsn:8, Length:24,
+ Pkt#diameter_packet{header = Hdr,
+ bin = <<Vsn:8, Length:24,
Flags:8, Code:24,
Aid:32,
Hid:32,