From 8a89a1e1e9880cc7ddbd76bb26d3e0755becd4b9 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 22 Dec 2018 01:21:50 +0100 Subject: [PATCH 1/1] Fix serialization of Client::header_or_short_response_bytes_sent. We used an uninitialized variable due to a typo. Found by Coverity Scan. --- client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index 2552c69..f02050b 100644 --- a/client.cpp +++ b/client.cpp @@ -134,7 +134,7 @@ ClientProto Client::serialize(unordered_map *short_respo serialized.set_header_or_short_response_index(iterator_and_inserted.first->second); } - serialized.set_header_or_short_response_bytes_sent(serialized.header_or_short_response_bytes_sent()); + serialized.set_header_or_short_response_bytes_sent(header_or_short_response_bytes_sent); serialized.set_stream_pos(stream_pos); serialized.set_stream_pos_end(stream_pos_end); serialized.set_bytes_sent(bytes_sent); -- 2.39.2