Skip to content

Commit e4e7c6f

Browse files
committed
HTTP: Added missing pointer check
1 parent f7d95b0 commit e4e7c6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

process/http.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,9 @@ bool HTTPPlugin::parse_http_response(const char* data, int payload_len, RecordEx
540540
} else if (!strcmp(buffer, "Set-Cookie")) {
541541
cookie_name_end
542542
= ipxp::strnstr(begin, HTTP_SETCOOKIE_NAME_DELIMITER, size_t(end - begin));
543+
if (cookie_name_end == nullptr) {
544+
break;
545+
}
543546
add_str(
544547
rec->set_cookie,
545548
sizeof(rec->set_cookie),

0 commit comments

Comments
 (0)