summaryrefslogtreecommitdiff
path: root/lib/common_test/src/ct_ssh.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common_test/src/ct_ssh.erl')
-rw-r--r--lib/common_test/src/ct_ssh.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_ssh.erl b/lib/common_test/src/ct_ssh.erl
index 79ab122452..1475b7bfd6 100644
--- a/lib/common_test/src/ct_ssh.erl
+++ b/lib/common_test/src/ct_ssh.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2009-2018. All Rights Reserved.
+%% Copyright Ericsson AB 2009-2023. 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.
@@ -738,8 +738,8 @@ do_recv_response(SSH, Chn, Data, End, Timeout) ->
debug("CLSD~n~p ~p", [SSH,Chn]),
{ok,Data};
- {ssh_cm, SSH, {data,Chn,_,NewData}} ->
- ssh_connection:adjust_window(SSH, Chn, size(NewData)),
+ {ssh_cm, SSH, {data,Chn,_,NewData}} when is_binary(NewData) ->
+ ssh_connection:adjust_window(SSH, Chn, byte_size(NewData)),
debug("RECVD~n~tp", [binary_to_list(NewData)]),
DataAcc = Data ++ binary_to_list(NewData),
if is_function(End) ->