summaryrefslogtreecommitdiff
path: root/common/tree.c
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2006-10-17 20:45:59 +0000
committerDavid Hankins <dhankins@isc.org>2006-10-17 20:45:59 +0000
commit66c8f7347aee4c6a72f1915d199ac64cde8a7adb (patch)
treeeba320be8269819f3f065280a8073a15b610a7f9 /common/tree.c
parent7cbeb9f493da928aae07dda3b6ed6f2be088e81c (diff)
downloadisc-dhcp-66c8f7347aee4c6a72f1915d199ac64cde8a7adb.tar.gz
- An option definition referencing leak was fixed, which resulted in early
termination of dhclient upon the renewal event. [ISC-Bugs #16423]
Diffstat (limited to 'common/tree.c')
-rw-r--r--common/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/tree.c b/common/tree.c
index 9c316f75..d5bf7ded 100644
--- a/common/tree.c
+++ b/common/tree.c
@@ -34,7 +34,7 @@
#ifndef lint
static char copyright[] =
-"$Id: tree.c,v 1.108 2006/07/31 22:19:51 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.\n";
+"$Id: tree.c,v 1.109 2006/10/17 20:45:59 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -242,7 +242,7 @@ int make_const_option_cache (oc, buffer, data, len, option, file, line)
(*oc) -> data.terminated = 0;
if (data)
memcpy (&bp -> data [0], data, len);
- (*oc) -> option = option;
+ option_reference(&((*oc)->option), option, MDL);
return 1;
}