From: Francois-Xavier Le Bail Date: Sun, 20 May 2018 06:03:22 +0000 (+0200) Subject: NTP: Fix extracting the poll value X-Git-Tag: tcpdump-4.99-bp~1169 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/4938de657c70286a7cd77e66d7b564d17cd2dd72 NTP: Fix extracting the poll value Use EXTRACT_S_1 for ppoll (signed). --- diff --git a/print-ntp.c b/print-ntp.c index 65d41fb7..de6ec6d9 100644 --- a/print-ntp.c +++ b/print-ntp.c @@ -276,7 +276,7 @@ ntp_time_print(netdissect_options *ndo, ND_TCHECK_1(bp->ppoll); ND_PRINT(", poll %d", EXTRACT_S_1(bp->ppoll)); - p_poll(ndo, EXTRACT_U_1(bp->ppoll)); + p_poll(ndo, EXTRACT_S_1(bp->ppoll)); ND_TCHECK_1(bp->precision); ND_PRINT(", precision %d", EXTRACT_S_1(bp->precision));