Skip to content

Commit

Permalink
change uniqptr init
Browse files Browse the repository at this point in the history
  • Loading branch information
smittals2 committed Jan 21, 2025
1 parent dbd660a commit 272ef8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ssl/ssl_cipher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1304,10 +1304,8 @@ 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>();
}

dst = MakeUnique<SSLCipherPreferenceList>();
dst->Init(std::move(tmp_cipher_list), flags_span);

return 1;
Expand Down

0 comments on commit 272ef8f

Please sign in to comment.