From: Francois-Xavier Le Bail Date: Mon, 10 Aug 2020 15:46:09 +0000 (+0200) Subject: DNS: Use GET_U_1() to replace a direct dereference X-Git-Tag: tcpdump-4.99-bp~272 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/7b7877e2e94642e201029b6ad42302a20667d691 DNS: Use GET_U_1() to replace a direct dereference --- diff --git a/print-domain.c b/print-domain.c index 1486b5d1..4523d67f 100644 --- a/print-domain.c +++ b/print-domain.c @@ -928,7 +928,7 @@ domain_print(netdissect_options *ndo, if (cp + 1 > ndo->ndo_snapend) goto print; if (type == T_OPT) { - rcode |= (*cp << 4); + rcode |= (GET_U_1(cp) << 4); goto print; } cp += 4;