summaryrefslogtreecommitdiff
path: root/common/options.c
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2011-03-24 21:11:01 +0000
committerShawn Routhier <sar@isc.org>2011-03-24 21:11:01 +0000
commitbea1769742a51bcb3525238842d76aedd267b613 (patch)
tree6e9388efb513045d6ae313c102c9e658cea5e1e2 /common/options.c
parentb7b43092cfc88d7680249b9e419b386486129983 (diff)
downloadisc-dhcp-bea1769742a51bcb3525238842d76aedd267b613.tar.gz
In dhclient check the data for some string options for
reasonableness before passing it along to the script that interfaces with the OS. [ISC-Bugs #23722]
Diffstat (limited to 'common/options.c')
-rw-r--r--common/options.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/options.c b/common/options.c
index a566708b..09c4cd02 100644
--- a/common/options.c
+++ b/common/options.c
@@ -3915,7 +3915,8 @@ pretty_escape(char **dst, char *dend, const unsigned char **src,
count += 4;
}
} else if (**src == '"' || **src == '\'' || **src == '$' ||
- **src == '`' || **src == '\\') {
+ **src == '`' || **src == '\\' || **src == '|' ||
+ **src == '&') {
if (*dst + 2 > dend)
return -1;