diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2019-04-28 16:21:07 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2019-04-28 16:21:07 +0200 |
commit | 3cef5425f51bf54504c53cfdc9354e41d5063759 (patch) | |
tree | e1a9e227bc6a0eeda5481d7b060710732a29bd69 /print-null.c | |
parent | e150c713a2ea333e9ab173e062b447dd65c9a4ee (diff) | |
download | tcpdump-3cef5425f51bf54504c53cfdc9354e41d5063759.tar.gz |
NULL/LOOP: Use GET_HE_U_4() call
Diffstat (limited to 'print-null.c')
-rw-r--r-- | print-null.c | 2 |
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 |