From: Ted Lemon Date: Fri, 17 May 1996 23:20:23 +0000 (+0000) Subject: initialize option pointers after allocating a new class structure X-Git-Tag: BETA-2~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6185d99424ba341a96f178732c7399bb322cd1ad;p=thirdparty%2Fdhcp.git initialize option pointers after allocating a new class structure --- diff --git a/common/memory.c b/common/memory.c index 3b4506cd4..c472ac5f9 100644 --- a/common/memory.c +++ b/common/memory.c @@ -487,6 +487,8 @@ struct class *add_class (type, name) memset (class, 0, sizeof *class); strcpy (tname, name); class -> name = tname; + memset (class -> options, 0, sizeof class -> options); + class -> max_lease_time = class -> default_lease_time = 0; if (type) add_hash (user_class_hash, diff --git a/memory.c b/memory.c index 3b4506cd4..c472ac5f9 100644 --- a/memory.c +++ b/memory.c @@ -487,6 +487,8 @@ struct class *add_class (type, name) memset (class, 0, sizeof *class); strcpy (tname, name); class -> name = tname; + memset (class -> options, 0, sizeof class -> options); + class -> max_lease_time = class -> default_lease_time = 0; if (type) add_hash (user_class_hash,