Skip to content

Commit 1e7d259

Browse files
authored
fix: authentication refresh when command data is not available (apache#304)
1 parent d1347c7 commit 1e7d259

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Commands.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ SharedBuffer Commands::newAuthResponse(const AuthenticationPtr& authentication,
313313

314314
if (authDataContent->hasDataFromCommand()) {
315315
authData->set_auth_data(authDataContent->getCommandData());
316+
} else {
317+
authData->set_auth_data("");
316318
}
317319

318320
return writeMessageWithSize(cmd);

0 commit comments

Comments
 (0)