summaryrefslogtreecommitdiff
path: root/common/execute.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2000-01-26 17:20:46 +0000
committerTed Lemon <source@isc.org>2000-01-26 17:20:46 +0000
commit3dc96064b9e9e3ad28fd2d1d62f346cdec699e06 (patch)
tree83ef37229920b073a9ce90c747a4e3cd6079de0c /common/execute.c
parent6954989f0389597f40578efc7ae5c696c4959223 (diff)
downloadisc-dhcp-3dc96064b9e9e3ad28fd2d1d62f346cdec699e06.tar.gz
Fix a memory smash.
Diffstat (limited to 'common/execute.c')
-rw-r--r--common/execute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/execute.c b/common/execute.c
index d8fb80fb..95a6b9a1 100644
--- a/common/execute.c
+++ b/common/execute.c
@@ -22,7 +22,7 @@
#ifndef lint
static char copyright[] =
-"$Id: execute.c,v 1.24 2000/01/26 14:55:34 mellon Exp $ Copyright (c) 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: execute.c,v 1.25 2000/01/26 17:20:46 mellon Exp $ Copyright (c) 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -245,7 +245,7 @@ int execute_statements (packet, lease, in_options, out_options, scope,
if (binding) {
binding -> name =
dmalloc (strlen
- (r -> data.set.name + 1),
+ (r -> data.set.name) + 1,
MDL);
if (binding -> name) {
strcpy (binding -> name,