This is an automated email from the ASF dual-hosted git repository.
xyz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-client-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new 1e7d259 fix: authentication refresh when command data is not
available (#304)
1e7d259 is described below
commit 1e7d259bb94379ef6e4618fdac283912d0be6861
Author: Jorge Pereira <[email protected]>
AuthorDate: Wed Jul 26 13:31:01 2023 +0100
fix: authentication refresh when command data is not available (#304)
---
lib/Commands.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/Commands.cc b/lib/Commands.cc
index 3245b53..d9251a0 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);