From 965c46cdf0b28a4ca8c1da70f83b62cd3b2133e8 Mon Sep 17 00:00:00 2001 From: Jorge Pereira Date: Tue, 25 Jul 2023 10:46:01 +0100 Subject: [PATCH] fix: authentication refresh when command data is not available --- lib/Commands.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Commands.cc b/lib/Commands.cc index 3245b533..d9251a0a 100644 --- a/lib/Commands.cc +++ b/lib/Commands.cc @@ -313,6 +313,8 @@ SharedBuffer Commands::newAuthResponse(const AuthenticationPtr& authentication, if (authDataContent->hasDataFromCommand()) { authData->set_auth_data(authDataContent->getCommandData()); + } else { + authData->set_auth_data(""); } return writeMessageWithSize(cmd);