diff options
author | 2017-11-06 12:51:53 +0000 | |
---|---|---|
committer | 2017-11-06 12:51:53 +0000 | |
commit | 5a385aabbf06d5c19500c4ed0b6db659a0cc877c (patch) | |
tree | 841e2572cb615ba39add80910c24a0fa7088aecd | |
parent | move a function declaration, so the whole net80211 stack can disable wep or wpa (diff) | |
download | wireguard-openbsd-5a385aabbf06d5c19500c4ed0b6db659a0cc877c.tar.xz wireguard-openbsd-5a385aabbf06d5c19500c4ed0b6db659a0cc877c.zip |
Add format 't' to parse_decimal() for signed 64-bit
integers.
-rw-r--r-- | sbin/dhclient/parse.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/dhclient/parse.c b/sbin/dhclient/parse.c index d3a7bbb5179..a9ea6f86e25 100644 --- a/sbin/dhclient/parse.c +++ b/sbin/dhclient/parse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.75 2017/10/23 13:15:57 krw Exp $ */ +/* $OpenBSD: parse.c,v 1.76 2017/11/06 12:51:53 krw Exp $ */ /* Common parser code for dhcpd and dhclient. */ @@ -288,6 +288,11 @@ parse_decimal(FILE *cfile, unsigned char *buf, char fmt) token = next_token(&val, cfile); switch (fmt) { + case 't': /* Signed 64-bit integer. */ + low = INT64_MIN; + high = INT64_MAX; + bytes = 8; + break; case 'l': /* Signed 32-bit integer. */ low = INT32_MIN; high = INT32_MAX; |