1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

resolved: make sure we always initialize r when parsing TXT records

This commit is contained in:
Lennart Poettering 2014-07-31 18:02:42 +02:00
parent 8ac4e9e1e5
commit 6a6fc3df74

View File

@ -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;
}