mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
Fix a memory smash.
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -245,7 +245,7 @@ int execute_statements (packet, lease, in_options, out_options, scope,
|
|||||||
if (binding) {
|
if (binding) {
|
||||||
binding -> name =
|
binding -> name =
|
||||||
dmalloc (strlen
|
dmalloc (strlen
|
||||||
(r -> data.set.name + 1),
|
(r -> data.set.name) + 1,
|
||||||
MDL);
|
MDL);
|
||||||
if (binding -> name) {
|
if (binding -> name) {
|
||||||
strcpy (binding -> name,
|
strcpy (binding -> name,
|
||||||
|
Reference in New Issue
Block a user