From: Ted Lemon Date: Fri, 1 Oct 1999 03:16:46 +0000 (+0000) Subject: Fix null pointer dereference. X-Git-Tag: V3-BETA-1-PATCH-2~5^2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9b01dcf9fceed0187ababb6803be1e7b7469f3b;p=thirdparty%2Fdhcp.git Fix null pointer dereference. --- diff --git a/common/execute.c b/common/execute.c index 87df6cb4d..955deb182 100644 --- a/common/execute.c +++ b/common/execute.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: execute.c,v 1.19 1999/09/22 01:45:49 mellon Exp $ Copyright (c) 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: execute.c,v 1.20 1999/10/01 03:16:46 mellon Exp $ Copyright (c) 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -425,7 +425,7 @@ void write_statements (file, statements, indent) error. */ if (r -> data.option -> option -> universe == &dhcp_universe) { - t = (char *)0; + t = ""; dot = ""; } else { t = (r -> data.option -> option ->