summaryrefslogtreecommitdiff
path: root/sntp/networking.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2019-03-07 13:01:16 +0000
committerCy Schubert <cy@FreeBSD.org>2019-03-07 13:01:16 +0000
commit360c01464aee3bc4c520898a675f35967db09ac2 (patch)
treec244e3f6baebbb7d13d8dd0d4ee570773cb3c579 /sntp/networking.c
parentc7f4d2332394d5600fe4e14c530ede36b0ff29b0 (diff)
Notes
Diffstat (limited to 'sntp/networking.c')
-rw-r--r--sntp/networking.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sntp/networking.c b/sntp/networking.c
index ecac15c262a51..040395e175b2a 100644
--- a/sntp/networking.c
+++ b/sntp/networking.c
@@ -78,7 +78,8 @@ skip_efields(
u_int nlen; /* next extension length */
while ((tail - head) > 6) {
- nlen = ntohl(*head++) & 0xffff;
+ nlen = ntohl(*head) & 0xffff;
+ ++head;
nlen = (nlen + 3) >> 2;
if (nlen > (u_int)(tail - head) || nlen < 4)
return NULL; /* Blooper! Inconsistent! */