summaryrefslogtreecommitdiffstats
path: root/source/lib/interface.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-31 03:11:42 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-31 03:11:42 +0000
commit3eade55dc7c842bdc50205c330802d211fae54d3 (patch)
tree09bca34d4463927d2930e9e926165d378ecb870f /source/lib/interface.c
parent7d455ee637b6ff70c95845f89d71573ca07b83f3 (diff)
downloadsamba-3eade55dc7c842bdc50205c330802d211fae54d3.tar.gz
samba-3eade55dc7c842bdc50205c330802d211fae54d3.tar.xz
samba-3eade55dc7c842bdc50205c330802d211fae54d3.zip
bounds check next_token() to prevent possible buffer overflows
Diffstat (limited to 'source/lib/interface.c')
-rw-r--r--source/lib/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/interface.c b/source/lib/interface.c
index 8cc5cfb0b16..581a2135bd8 100644
--- a/source/lib/interface.c
+++ b/source/lib/interface.c
@@ -136,7 +136,7 @@ static void interpret_interfaces(char *s, struct interface **interfaces,
allones_ip = *interpret_addr2("255.255.255.255");
loopback_ip = *interpret_addr2("127.0.0.1");
- while (next_token(&ptr,token,NULL)) {
+ while (next_token(&ptr,token,NULL,sizeof(token))) {
/* parse it into an IP address/netmasklength pair */
char *p = strchr(token,'/');
if (p) *p++ = 0;