]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: fix null pointer dereferences
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 21 Feb 2019 09:11:20 +0000 (18:11 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Feb 2019 10:07:32 +0000 (11:07 +0100)
Follow-up for 8227cfa137d8a930519717b752128b8d035b83e5.

Fixes CID#1398986.

src/resolve/resolved-dns-transaction.c

index 50c007c307896eb8ea7181c972584cc4de52b627..425627d97f11c9e577151ab5db632870683c27c2 100644 (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;
 }