aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_capx.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2012-09-25 17:40:17 +0200
committerAnders Svensson <[email protected]>2012-09-25 17:40:17 +0200
commit2d3a6154748061edd66b721bc11dbed9046d49ff (patch)
tree560f87ff55720a03143c557b5919d1585d110fd6 /lib/diameter/src/base/diameter_capx.erl
parent952db27ba0a5b87a2a47f3a7034a9bf92e3651e5 (diff)
downloadotp-2d3a6154748061edd66b721bc11dbed9046d49ff.tar.gz
otp-2d3a6154748061edd66b721bc11dbed9046d49ff.tar.bz2
otp-2d3a6154748061edd66b721bc11dbed9046d49ff.zip
Fix handling of Origin-State-Id config
Documentation (correctly) say {'Origin-State-Id', Unsigned32()}, code (incorrectly) expected {'Origin-State-Id', [Unsigned32()]}.
Diffstat (limited to 'lib/diameter/src/base/diameter_capx.erl')
-rw-r--r--lib/diameter/src/base/diameter_capx.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_capx.erl b/lib/diameter/src/base/diameter_capx.erl
index 6c4d60ee9b..6a87819f04 100644
--- a/lib/diameter/src/base/diameter_capx.erl
+++ b/lib/diameter/src/base/diameter_capx.erl
@@ -141,7 +141,9 @@ cap('Host-IP-Address', Vs)
when is_list(Vs) ->
lists:map(fun ipaddr/1, Vs);
-cap('Firmware-Revision', V) ->
+cap(K, V)
+ when K == 'Firmware-Revision';
+ K == 'Origin-State-Id' ->
[V];
cap(_, Vs)