From: Yu Watanabe Date: Thu, 21 Feb 2019 09:11:20 +0000 (+0900) Subject: resolve: fix null pointer dereferences X-Git-Tag: v242-rc1~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30f9e0bfe53d4d4ec37eef0bac5d905fc93dfa0d;p=thirdparty%2Fsystemd.git resolve: fix null pointer dereferences Follow-up for 8227cfa137d8a930519717b752128b8d035b83e5. Fixes CID#1398986. --- diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c index 50c007c3078..425627d97f1 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; }