aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/ssl_sni_SUITE.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-02-22 10:50:16 +0100
committerIngela Anderton Andin <[email protected]>2016-02-22 10:50:16 +0100
commit2c370def9ddbc34efb16f5dbe8064350c140183a (patch)
tree1da495d78ab240ad11f8427cdad3f1153406ac22 /lib/ssl/test/ssl_sni_SUITE.erl
parent942aa912cd1f17a7a98fd98f9d39a1374bbac44d (diff)
parent89d7e21cf4ae988c57c8ef047bfe85127875c70c (diff)
downloadotp-2c370def9ddbc34efb16f5dbe8064350c140183a.tar.gz
otp-2c370def9ddbc34efb16f5dbe8064350c140183a.tar.bz2
otp-2c370def9ddbc34efb16f5dbe8064350c140183a.zip
Merge branch 'maint'
Diffstat (limited to 'lib/ssl/test/ssl_sni_SUITE.erl')
-rw-r--r--lib/ssl/test/ssl_sni_SUITE.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ssl/test/ssl_sni_SUITE.erl b/lib/ssl/test/ssl_sni_SUITE.erl
index f6ffe91027..90c2a49e61 100644
--- a/lib/ssl/test/ssl_sni_SUITE.erl
+++ b/lib/ssl/test/ssl_sni_SUITE.erl
@@ -108,8 +108,12 @@ ssl_recv(SSLSocket, CurrentData, ExpectedData) ->
send_and_hostname(SSLSocket) ->
ssl:send(SSLSocket, "OK"),
- {ok, [{sni_hostname, Hostname}]} = ssl:connection_information(SSLSocket, [sni_hostname]),
- Hostname.
+ case ssl:connection_information(SSLSocket, [sni_hostname]) of
+ {ok, [{sni_hostname, Hostname}]} ->
+ Hostname;
+ {ok, []} ->
+ undefined
+ end.
rdnPart([[#'AttributeTypeAndValue'{type=Type, value=Value} | _] | _], Type) ->
Value;