diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-02-15 19:55:34 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-02-17 10:25:16 +0100 |
commit | 2d4a4e141928f20035e83b59c44f465dbcc893df (patch) | |
tree | ad90956dcd356a2d4da7b83b581c7fa0ec3c81f6 /src | |
parent | 1fdeaeb741bf06d1c2efe08c28b5f9d0a3a7a5ec (diff) |
resolved: initialize all return values on successful exit of dns_cache_lookup()
Following our coding style on success we should initialize all return
parameters of a function. We missed to cases for dns_cache_lookup() (but
covered all others), fix them too.
Diffstat (limited to 'src')
-rw-r--r-- | src/resolve/resolved-dns-cache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-cache.c b/src/resolve/resolved-dns-cache.c index ee93147015..46a25c2bee 100644 --- a/src/resolve/resolved-dns-cache.c +++ b/src/resolve/resolved-dns-cache.c @@ -865,6 +865,8 @@ int dns_cache_lookup(DnsCache *c, DnsResourceKey *key, bool clamp_ttl, int *rcod *ret = NULL; *rcode = DNS_RCODE_SUCCESS; + *authenticated = false; + return 0; } @@ -879,6 +881,8 @@ int dns_cache_lookup(DnsCache *c, DnsResourceKey *key, bool clamp_ttl, int *rcod *ret = NULL; *rcode = DNS_RCODE_SUCCESS; + *authenticated = false; + return 0; } |