aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-08-15 14:24:50 +0200
committerAnders Svensson <[email protected]>2017-08-15 14:39:27 +0200
commite693596e7d73ce438659e54b2e5cf72b2e7173f3 (patch)
tree76ed3f4effddf133d0f3a3ff2cf2f0986f8c94e5 /lib
parent040bdce67f88d833bfb59adae130a4ffb4c180f0 (diff)
downloadotp-e693596e7d73ce438659e54b2e5cf72b2e7173f3.tar.gz
otp-e693596e7d73ce438659e54b2e5cf72b2e7173f3.tar.bz2
otp-e693596e7d73ce438659e54b2e5cf72b2e7173f3.zip
Fix regexp match of accept tuple in diameter_tcp/sctp
Matching of remote addresses when accepting connections in a listening transport was case-sensitive, causing the semantics to change as a consequence of 95ebfa0b, which made inet:ntoa/1 return lowercase.
Diffstat (limited to 'lib')
-rw-r--r--lib/diameter/src/base/diameter_peer.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/src/base/diameter_peer.erl b/lib/diameter/src/base/diameter_peer.erl
index 2759f17e64..dfbf350346 100644
--- a/lib/diameter/src/base/diameter_peer.erl
+++ b/lib/diameter/src/base/diameter_peer.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2015. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2017. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -202,7 +202,7 @@ match1(Addr, Match) ->
match(Addr, {ok, A}, _) ->
Addr == A;
match(Addr, {error, _}, RE) ->
- match == re:run(inet_parse:ntoa(Addr), RE, [{capture, none}]).
+ match == re:run(inet_parse:ntoa(Addr), RE, [{capture, none}, caseless]).
addr([_|_] = A) ->
inet_parse:address(A);