From: Francois-Xavier Le Bail Date: Sun, 28 Apr 2019 14:21:07 +0000 (+0200) Subject: NULL/LOOP: Use GET_HE_U_4() call X-Git-Tag: tcpdump-4.99-bp~800 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/3cef5425f51bf54504c53cfdc9354e41d5063759 NULL/LOOP: Use GET_HE_U_4() call --- diff --git a/print-null.c b/print-null.c index e7daacd4..f730a23f 100644 --- a/print-null.c +++ b/print-null.c @@ -86,7 +86,7 @@ null_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char goto trunc; ND_TCHECK_4(p); - memcpy((char *)&family, (const char *)p, sizeof(family)); + family = GET_HE_U_4(p); /* * This isn't necessarily in our host byte order; if this is