summaryrefslogtreecommitdiff
path: root/print-null.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-04-28 16:21:07 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-04-28 16:21:07 +0200
commit3cef5425f51bf54504c53cfdc9354e41d5063759 (patch)
treee1a9e227bc6a0eeda5481d7b060710732a29bd69 /print-null.c
parente150c713a2ea333e9ab173e062b447dd65c9a4ee (diff)
downloadtcpdump-3cef5425f51bf54504c53cfdc9354e41d5063759.tar.gz
NULL/LOOP: Use GET_HE_U_4() call
Diffstat (limited to 'print-null.c')
-rw-r--r--print-null.c2
1 files changed, 1 insertions, 1 deletions
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