#7 Actually update server_id

This commit is contained in:
Erik Ekman 2007-12-02 02:27:36 +00:00
parent 9ca4130e9a
commit 6fa0d98c99

View File

@ -168,6 +168,10 @@ read_dns(int fd, char *buf, int buflen)
rv = dns_decode(buf, buflen, &q, QR_ANSWER, data, r);
if (rv > 0) {
server_id = q.id;
}
if (packet_empty(&packet) == 0 && chunkid == q.id) {
/* Got ACK on sent packet */
packet_advance(&packet);