diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2019-06-15 23:12:24 +0200 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2019-06-15 23:12:24 +0200 |
commit | 9bd2422ac38f0d90223a11d66ed50a93346d16f8 (patch) | |
tree | 8c93547113d39d917aa3627a69bb2aae77c95629 /src/resolve | |
parent | 4b381a9ef65d68dc79760b093436a9c81f43fa5d (diff) | |
download | systemd-9bd2422ac38f0d90223a11d66ed50a93346d16f8.tar.gz |
travis: turn on nonnull-attribute on Fuzzit
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-dns-rr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-rr.c b/src/resolve/resolved-dns-rr.c index 4cbb9723e2..6ba26a24b2 100644 --- a/src/resolve/resolved-dns-rr.c +++ b/src/resolve/resolved-dns-rr.c @@ -7,6 +7,7 @@ #include "dns-type.h" #include "escape.h" #include "hexdecoct.h" +#include "memory-util.h" #include "resolved-dns-dnssec.h" #include "resolved-dns-packet.h" #include "resolved-dns-rr.h" @@ -555,7 +556,7 @@ int dns_resource_record_new_address(DnsResourceRecord **ret, int family, const u #define FIELD_EQUAL(a, b, field) \ ((a).field ## _size == (b).field ## _size && \ - memcmp((a).field, (b).field, (a).field ## _size) == 0) + memcmp_safe((a).field, (b).field, (a).field ## _size) == 0) int dns_resource_record_payload_equal(const DnsResourceRecord *a, const DnsResourceRecord *b) { int r; |