]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix a memory smash.
authorTed Lemon <source@isc.org>
Wed, 26 Jan 2000 17:20:46 +0000 (17:20 +0000)
committerTed Lemon <source@isc.org>
Wed, 26 Jan 2000 17:20:46 +0000 (17:20 +0000)
common/execute.c

index d8fb80fb1a455a5c1338616620d6e3490e3d969a..95a6b9a19daa236ffef60076afd579865d0c86c9 100644 (file)
@@ -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,