aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavidKorczynski <david@adalogics.com>2021-10-02 12:09:21 +0100
committerGitHub <noreply@github.com>2021-10-02 12:09:21 +0100
commit05a03fcdac0eda599c5016a3a67d3c2dcfbb1f4a (patch)
tree0340b1ebfd1954d4b500d1b213ddb43e09243ce3
parentaca25528747082f711ab5cc8b019acaad1310841 (diff)
downloadoss-fuzz-05a03fcdac0eda599c5016a3a67d3c2dcfbb1f4a.tar.gz
dnsmasq: fix fuzzer and build (#6545)
-rw-r--r--projects/dnsmasq/fuzz_rfc1035.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/projects/dnsmasq/fuzz_rfc1035.c b/projects/dnsmasq/fuzz_rfc1035.c
index f0f75c59a..fb563f804 100644
--- a/projects/dnsmasq/fuzz_rfc1035.c
+++ b/projects/dnsmasq/fuzz_rfc1035.c
@@ -23,8 +23,8 @@ void FuzzExtractTheAddress(const uint8_t **data2, size_t *size2) {
new_name = get_null_terminated(&data, &size);
pointer_arr[pointer_idx++] = (void*)new_name;
- int check_rebind = get_int(&data, &size);
int is_sign = get_int(&data, &size);
+ int check_rebind = get_int(&data, &size);
int secure = get_int(&data, &size);
if (size > (sizeof(struct dns_header) +50)) {
@@ -35,7 +35,7 @@ void FuzzExtractTheAddress(const uint8_t **data2, size_t *size2) {
time_t now;
int doctored = 0;
- extract_addresses((struct dns_header *)new_data, size, new_name, now, NULL, check_rebind, is_sign, 0, secure, &doctored);
+ extract_addresses((struct dns_header *)new_data, size, new_name, now, NULL, NULL, is_sign, check_rebind, 0, secure, &doctored);
}
}