resolve: fix null pointer dereferences

Follow-up for 8227cfa137.

Fixes CID#1398986.
This commit is contained in:
Yu Watanabe 2019-02-21 18:11:20 +09:00 committed by Lennart Poettering
parent 5fe74e893c
commit 30f9e0bfe5
1 changed files with 1 additions and 1 deletions

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