Skip to content

Commit

Permalink
changed SSLCipherPreferenceList initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
smittals2 committed Jan 23, 2025
1 parent 7798ef6 commit 8442723
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ssl/ssl_cipher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1305,12 +1305,12 @@ int update_cipher_list(UniquePtr<SSLCipherPreferenceList> &dst, UniquePtr<SSLCip
}

Span<const bool> flags_span(updated_in_group_flags.data(), updated_in_group_flags.size());

if (!dst) {
dst = MakeUnique<SSLCipherPreferenceList>();
UniquePtr<SSLCipherPreferenceList> new_list = MakeUnique<SSLCipherPreferenceList>();
if (!new_list || !new_list->Init(std::move(tmp_cipher_list), flags_span)) {
return 0;
}
dst->Init(std::move(tmp_cipher_list), flags_span);

dst = std::move(new_list);
return 1;
}

Expand Down

0 comments on commit 8442723

Please sign in to comment.