summaryrefslogtreecommitdiffstats
path: root/src/ct_helper.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ct_helper.erl')
-rw-r--r--src/ct_helper.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ct_helper.erl b/src/ct_helper.erl
index 6e6371c..c1a1d93 100644
--- a/src/ct_helper.erl
+++ b/src/ct_helper.erl
@@ -150,7 +150,8 @@ get_remote_pid_tls(Socket) ->
-ifdef(OTP_RELEASE).
-if(?OTP_RELEASE >= 22).
get_tls_state(TLSPid) ->
- {_, #state{connection_env=#connection_env{user_application={_, UserPid}}}} = sys:get_state(TLSPid),
+ {_, #state{connection_env=ConnEnv}} = sys:get_state(TLSPid),
+ {_, UserPid} = element(2, ConnEnv), %% #connection_env.user_application
UserPid.
-else.
%% This is defined in ssl_record.hrl starting from OTP-21.3.