diff options
author | Anders Svensson <[email protected]> | 2012-09-25 17:40:17 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2012-09-25 17:40:17 +0200 |
commit | 2d3a6154748061edd66b721bc11dbed9046d49ff (patch) | |
tree | 560f87ff55720a03143c557b5919d1585d110fd6 /lib/diameter/src/base/diameter_capx.erl | |
parent | 952db27ba0a5b87a2a47f3a7034a9bf92e3651e5 (diff) | |
download | otp-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.erl | 4 |
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) |