aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-03-04 15:06:15 +0100
committerIngela Anderton Andin <[email protected]>2014-03-04 15:06:15 +0100
commit14d7935b282fde10679bd7096012be4c7855595c (patch)
treea05568436d403433d0d6c34a7b9acfa04523f907 /lib
parent477824259524f918ad94d36fb0d3b746e4b12111 (diff)
downloadotp-14d7935b282fde10679bd7096012be4c7855595c.tar.gz
otp-14d7935b282fde10679bd7096012be4c7855595c.tar.bz2
otp-14d7935b282fde10679bd7096012be4c7855595c.zip
ssl: Add exception for inet and inet6 to proplist check
Diffstat (limited to 'lib')
-rw-r--r--lib/ssl/src/ssl.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl
index d46c05c5f3..9e098e12c4 100644
--- a/lib/ssl/src/ssl.erl
+++ b/lib/ssl/src/ssl.erl
@@ -1048,5 +1048,10 @@ assert_proplist([]) ->
true;
assert_proplist([{Key,_} | Rest]) when is_atom(Key) ->
assert_proplist(Rest);
+%% Handle exceptions
+assert_proplist([inet | Rest]) ->
+ assert_proplist(Rest);
+assert_proplist([inet6 | Rest]) ->
+ assert_proplist(Rest);
assert_proplist([Value | _]) ->
throw({option_not_a_key_value_tuple, Value}).