resolve: fix null pointer dereferences

Follow-up for 8227cfa137.

Fixes CID#1398986.
This commit is contained in:
Yu Watanabe
2019-02-21 11:07:32 +01:00
committed by Lennart Poettering
parent 5fe74e893c
commit 30f9e0bfe5
+1 -1
View File
@@ -541,7 +541,7 @@ static int on_stream_packet(DnsStream *s) {
return dns_transaction_on_stream_packet(t, p);
/* Ignore incorrect transaction id as an old transaction can have been canceled. */
log_debug("Received unexpected TCP reply packet with id %" PRIu16 ", ignoring.", t->id);
log_debug("Received unexpected TCP reply packet with id %" PRIu16 ", ignoring.", DNS_PACKET_ID(p));
return 0;
}