File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/plugins/process/tls/src Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,9 @@ static std::string concatenate_vector_to_string(const std::vector<uint16_t>& vec
134134
135135static std::string concatenate_vector_to_hex_string (const std::vector<uint16_t >& vector)
136136{
137+ if (vector.empty ()) {
138+ return " " ;
139+ }
137140 auto res = std::accumulate (
138141 vector.begin (),
139142 vector.end (),
@@ -150,6 +153,9 @@ static std::string concatenate_vector_to_hex_string(const std::vector<uint16_t>&
150153static std::string
151154concatenate_extensions_vector_to_string (const std::vector<TLSExtension>& extensions)
152155{
156+ if (extensions.empty ()) {
157+ return " " ;
158+ }
153159 auto res = std::accumulate (
154160 extensions.begin (),
155161 extensions.end (),
You can’t perform that action at this time.
0 commit comments