Skip to content

Commit

Permalink
Check for a valid provider instead of connection state in
Browse files Browse the repository at this point in the history
`server_state::set_encryption_key()`

Refs #192
  • Loading branch information
ayurchen committed Aug 15, 2022
1 parent 8bfce04 commit 344544d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ int
wsrep::server_state::set_encryption_key(std::vector<unsigned char>& key)
{
encryption_key_ = key;
if (state_ != s_disconnected)
if (provider_)
{
wsrep::const_buffer const key(encryption_key_.data(),
encryption_key_.size());
Expand Down

0 comments on commit 344544d

Please sign in to comment.