aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets
diff options
context:
space:
mode:
authorKirilll Zaborsky <[email protected]>2014-03-06 16:58:13 +0400
committerKirilll Zaborsky <[email protected]>2014-03-09 14:23:39 +0400
commitb3a4edeb7de93483b465130374ffdc8fa6e8d9f2 (patch)
treeda9e59eff08e5584674e760a4986e4832cc76469 /lib/inets
parent23790daf1a2d384b0fc11c655fa825151d9fa420 (diff)
downloadotp-b3a4edeb7de93483b465130374ffdc8fa6e8d9f2.tar.gz
otp-b3a4edeb7de93483b465130374ffdc8fa6e8d9f2.tar.bz2
otp-b3a4edeb7de93483b465130374ffdc8fa6e8d9f2.zip
inets: Fix incorrect argument order
Wrong order of arguments in httpc_handler:update_session/4 error handling code should not result in bad_argument error making stack trace unusable.
Diffstat (limited to 'lib/inets')
-rw-r--r--lib/inets/src/http_client/httpc_handler.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inets/src/http_client/httpc_handler.erl b/lib/inets/src/http_client/httpc_handler.erl
index 80c8b2439e..0a546ec54b 100644
--- a/lib/inets/src/http_client/httpc_handler.erl
+++ b/lib/inets/src/http_client/httpc_handler.erl
@@ -1829,7 +1829,7 @@ update_session(ProfileName, #session{id = SessionId} = Session, Pos, Value) ->
[ProfileName, SessionId, Pos, Value,
(catch httpc_manager:which_session_info(ProfileName)),
Session,
- (catch httpc_manager:lookup_session(ProfileName, SessionId)),
+ (catch httpc_manager:lookup_session(SessionId, ProfileName)),
T, E]),
exit({failed_updating_session,
[{profile, ProfileName},