From 30f9e0bfe53d4d4ec37eef0bac5d905fc93dfa0d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 21 Feb 2019 18:11:20 +0900 Subject: [PATCH] resolve: fix null pointer dereferences Follow-up for 8227cfa137d8a930519717b752128b8d035b83e5. Fixes CID#1398986. --- src/resolve/resolved-dns-transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c index 50c007c307..425627d97f 100644 --- a/src/resolve/resolved-dns-transaction.c +++ b/src/resolve/resolved-dns-transaction.c @@ -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; }