diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-08-04 10:13:30 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-08-09 13:39:23 +0200 |
commit | 6d873d68370034fa21906ce976a609322516b344 (patch) | |
tree | 4b94fa800a31904db910828d0b9a7b9b569121e5 /wsd/COOLWSD.cpp | |
parent | cid#318875 Dereference after null check (diff) | |
download | online-6d873d68370034fa21906ce976a609322516b344.tar.gz online-6d873d68370034fa21906ce976a609322516b344.zip |
cid#318919 Dereference after null check
map is never null so make it a reference
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I9f6ad863d0a1102dd7e26a5668b1c6ba71249580
Diffstat (limited to 'wsd/COOLWSD.cpp')
-rw-r--r-- | wsd/COOLWSD.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wsd/COOLWSD.cpp b/wsd/COOLWSD.cpp index c3ef7cd7c1..20f322f86c 100644 --- a/wsd/COOLWSD.cpp +++ b/wsd/COOLWSD.cpp @@ -3882,14 +3882,14 @@ private: Poco::Net::HTTPRequest request; StreamSocket::MessageMap map; - if (!socket->parseHeader("Client", startmessage, request, &map)) + if (!socket->parseHeader("Client", startmessage, request, map)) return; LOG_DBG("Handling request: " << request.getURI()); try { // We may need to re-write the chunks moving the inBuffer. - socket->compactChunks(&map); + socket->compactChunks(map); Poco::MemoryInputStream message(&socket->getInBuffer()[0], socket->getInBuffer().size()); // update the read cursor - headers are not altered by chunks. |