From: Ted Lemon Date: Wed, 26 Jan 2000 17:22:58 +0000 (+0000) Subject: res_freeupdrec will free r_dname, so we shouldn't. X-Git-Tag: V3-BETA-2-PATCH-1~395 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d959a403dd85b874c048e9b8e88a65a83170321;p=thirdparty%2Fdhcp.git res_freeupdrec will free r_dname, so we shouldn't. --- diff --git a/common/tree.c b/common/tree.c index 6945c0794..97b6f9d40 100644 --- a/common/tree.c +++ b/common/tree.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: tree.c,v 1.69 2000/01/26 14:55:35 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n"; +"$Id: tree.c,v 1.70 2000/01/26 17:22:58 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1806,10 +1806,6 @@ int evaluate_numeric_expression (result, packet, lease, dfree (tmp -> r_data, MDL); tmp -> r_data = (char *)0; } - if (tmp -> r_dname) { - dfree (tmp -> r_dname, MDL); - tmp -> r_dname = (char *)0; - } res_freeupdrec (tmp); } return status;