diff options
author | Anders Svensson <[email protected]> | 2013-03-26 13:39:10 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2013-03-26 17:13:30 +0100 |
commit | 49040f8be249501331abc3830dfe91344fd0f988 (patch) | |
tree | 1e1be371599ae959204a169ed4a025c4b209183b | |
parent | 78161a2ae3f494e41883b8cf2ddf6bf2ab0b43d5 (diff) | |
download | otp-49040f8be249501331abc3830dfe91344fd0f988.tar.gz otp-49040f8be249501331abc3830dfe91344fd0f988.tar.bz2 otp-49040f8be249501331abc3830dfe91344fd0f988.zip |
Fix faulty sequence validation
The validation of {sequence, {H,N}} incorrectly checked that H was an
N-bit integer, instead of the intended 32-N.
-rw-r--r-- | lib/diameter/src/base/diameter_config.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_config.erl b/lib/diameter/src/base/diameter_config.erl index 899c909ebe..1282930145 100644 --- a/lib/diameter/src/base/diameter_config.erl +++ b/lib/diameter/src/base/diameter_config.erl @@ -693,7 +693,7 @@ opt(K, _) -> ?THROW({value, K}). sequence({H,N} = T) - when 0 =< N, N =< 32, 0 =< H, 0 == H bsr N -> + when 0 =< N, N =< 32, 0 =< H, 0 == H bsr (32-N) -> T; sequence(_) -> |