mirror of
https://github.com/yarrick/iodine.git
synced 2025-10-30 05:04:37 +00:00
#7 Actually update server_id
This commit is contained in:
@@ -168,6 +168,10 @@ read_dns(int fd, char *buf, int buflen)
|
|||||||
|
|
||||||
rv = dns_decode(buf, buflen, &q, QR_ANSWER, data, r);
|
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) {
|
if (packet_empty(&packet) == 0 && chunkid == q.id) {
|
||||||
/* Got ACK on sent packet */
|
/* Got ACK on sent packet */
|
||||||
packet_advance(&packet);
|
packet_advance(&packet);
|
||||||
|
|||||||
Reference in New Issue
Block a user