summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2019-06-24 15:10:06 +0200
committerMichael Klishin <michael@clojurewerkz.org>2019-06-28 18:37:11 +0200
commitbfc82277b4ae757b96a6aff82fc0c7918bec42a7 (patch)
tree95228759e8068368e081f86cdb68b1cf1fceddc5
parentd680f52125e95fd9aec2a933c65b5dd91b9da7bc (diff)
downloadrabbitmq-server-git-bfc82277b4ae757b96a6aff82fc0c7918bec42a7.tar.gz
Return a complete connection record
Corrects a typo in 97f3f52.
-rw-r--r--src/rabbit_reader.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index b58eb7aa65..71d92514b7 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -1277,7 +1277,7 @@ handle_method0(#'connection.update_secret'{new_secret = NewSecret, reason = Reas
State = #v1{connection =
#connection{protocol = Protocol,
user = User = #user{username = Username},
- log_name = ConnName},
+ log_name = ConnName} = Conn,
sock = Sock}) when ?IS_RUNNING(State) ->
rabbit_log_connection:debug(
"connection ~p (~s) of user '~s': "
@@ -1300,7 +1300,7 @@ handle_method0(#'connection.update_secret'{new_secret = NewSecret, reason = Reas
"connection ~p (~s): "
"user '~s' updated secret, reason: ~s~n",
[self(), dynamic_connection_name(ConnName), Username, Reason]),
- State#v1{connection = #connection{user = User1}};
+ State#v1{connection = Conn#connection{user = User1}};
{refused, Reason} ->
rabbit_log_connection:error("Secret update was refused for user '~p': ~p",
[Username, Reason]),