summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-09-19 10:08:45 -0400
committerAshod Nakashian <ashnakash@gmail.com>2019-09-22 20:18:51 +0200
commit68d834ac4fea7405acffa547da3436afc7648cbd (patch)
tree7f2bbd8fb8f4353453a1da1860d9ec23a550051e /net
parentfbed7bf1ae24550a4aa9923dee9726887879c425 (diff)
wsd: asan: stack-use-after-scope
Change-Id: Ia14e67f36b22ab45782cf0d1808b71e37b834104 Reviewed-on: https://gerrit.libreoffice.org/79324 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'net')
-rw-r--r--net/Socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/Socket.cpp b/net/Socket.cpp
index f5661c3dd..345e1d652 100644
--- a/net/Socket.cpp
+++ b/net/Socket.cpp
@@ -693,7 +693,7 @@ bool StreamSocket::parseHeader(const char *clientName,
if (map)
map->_messageSize += contentLength;
- const std::string& expect = request.get("Expect", "");
+ const std::string expect = request.get("Expect", "");
bool getExpectContinue = !expect.empty() && Poco::icompare(expect, "100-continue") == 0;
if (getExpectContinue && !_sentHTTPContinue)
{