summaryrefslogtreecommitdiffstats
path: root/src/fuzz/fuzz-dhcp-server.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-01-22 01:56:46 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-01-22 01:58:29 +0100
commitdb52db4afa8911516d86f14bba02214238bd6b91 (patch)
tree7d48299ee911ea1f486ec620822ab97fb3760e0f /src/fuzz/fuzz-dhcp-server.c
parentfuzz: check return value (diff)
downloadsystemd-db52db4afa8911516d86f14bba02214238bd6b91.tar.xz
systemd-db52db4afa8911516d86f14bba02214238bd6b91.zip
fuzz: cast to void when return value is ignored
Diffstat (limited to 'src/fuzz/fuzz-dhcp-server.c')
-rw-r--r--src/fuzz/fuzz-dhcp-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzz/fuzz-dhcp-server.c b/src/fuzz/fuzz-dhcp-server.c
index bdebb375df..ba903c7158 100644
--- a/src/fuzz/fuzz-dhcp-server.c
+++ b/src/fuzz/fuzz-dhcp-server.c
@@ -62,7 +62,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
server->bound_leases[pool_offset] = lease;
assert_se(hashmap_put(server->leases_by_client_id, &lease->client_id, lease) >= 0);
- dhcp_server_handle_message(server, (DHCPMessage*)data, size);
+ (void) dhcp_server_handle_message(server, (DHCPMessage*)data, size);
return 0;
}