diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-31 18:02:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-31 18:23:34 +0200 |
commit | 6a6fc3df74c8ed91d4ea1813b3f6a6c3bf48a288 (patch) | |
tree | f13186afbb3cd577c44517ff4f8b4ae90121fd31 | |
parent | 8ac4e9e1e54397f6d1745c2a7a806132418c7da2 (diff) |
resolved: make sure we always initialize r when parsing TXT records
-rw-r--r-- | src/resolve/resolved-dns-packet.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c index 5d4e097c75..05c62a497f 100644 --- a/src/resolve/resolved-dns-packet.c +++ b/src/resolve/resolved-dns-packet.c @@ -524,6 +524,7 @@ int dns_packet_append_rr(DnsPacket *p, const DnsResourceRecord *rr, size_t *star goto fail; } + r = 0; break; } @@ -977,7 +978,9 @@ int dns_packet_read_rr(DnsPacket *p, DnsResourceRecord **ret, size_t *start) { r = strv_consume(&rr->txt.strings, s); if (r < 0) goto fail; - }; + } + + r = 0; break; } |