diff options
author | 2017-07-08 15:26:27 +0000 | |
---|---|---|
committer | 2017-07-08 15:26:27 +0000 | |
commit | 164058f938d76fcbc69b101c1e43551781f44602 (patch) | |
tree | 42c7bc9dc6c99f59c2c6dacaca913b1f0a0be1dd | |
parent | 1. Eliminate struct eqn, instead use the existing members (diff) | |
download | wireguard-openbsd-164058f938d76fcbc69b101c1e43551781f44602.tar.xz wireguard-openbsd-164058f938d76fcbc69b101c1e43551781f44602.zip |
Always use strcasecmp() when comparing user input to option
names, not just 2 out of 3.
-rw-r--r-- | sbin/dhclient/clparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c index da4d664a3d9..1cb8246ebd8 100644 --- a/sbin/dhclient/clparse.c +++ b/sbin/dhclient/clparse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clparse.c,v 1.117 2017/07/08 00:36:10 krw Exp $ */ +/* $OpenBSD: clparse.c,v 1.118 2017/07/08 15:26:27 krw Exp $ */ /* Parser for dhclient config and lease files. */ @@ -639,7 +639,7 @@ parse_option_decl(FILE *cfile, struct option_data *options) /* Look up the actual option info. */ fmt = NULL; for (code = 0; code < DHO_COUNT; code++) - if (strcmp(dhcp_options[code].name, val) == 0) + if (strcasecmp(dhcp_options[code].name, val) == 0) break; if (code > 255) { |