summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorAliaksandr Kalenik <kalenik.aliaksandr@gmail.com>2023-03-23 02:52:06 +0300
committerAndreas Kling <kling@serenityos.org>2023-03-26 17:56:17 +0200
commit9220cdc285db3ac68cdef58d8beb15a0171c54c9 (patch)
treecd19895d6fdd1b0f20bcc0be28b66009186e0ecc /Meta
parent5b31d1208f7d0622a8fd57024568368286bf8372 (diff)
downloadserenity-9220cdc285db3ac68cdef58d8beb15a0171c54c9.zip
LibHTTP+WebDriver+WebServer: Return error from HTTP request parser
Diffstat (limited to 'Meta')
-rw-r--r--Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp b/Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp
index 5800767379..6f85a08131 100644
--- a/Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp
@@ -11,7 +11,7 @@
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
{
auto request_wrapper = HTTP::HttpRequest::from_raw_request(ReadonlyBytes { data, size });
- if (!request_wrapper.has_value())
+ if (!request_wrapper.is_error())
return 0;
auto& request = request_wrapper.value();