]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix bug in classing code
authorTed Lemon <source@isc.org>
Tue, 31 Dec 1996 02:02:54 +0000 (02:02 +0000)
committerTed Lemon <source@isc.org>
Tue, 31 Dec 1996 02:02:54 +0000 (02:02 +0000)
common/memory.c
dhcp.c
memory.c
server/dhcp.c

index 6f7617c2f01af7d4aa213bdadbdd0dbda0630986..437c9137b2f6d886fe6c8d145eadfbb3fabbdc86 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: memory.c,v 1.22 1996/11/08 20:09:10 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: memory.c,v 1.23 1996/12/31 02:02:54 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -806,7 +806,7 @@ struct class *add_class (type, name)
                add_hash (user_class_hash,
                          tname, strlen (tname), (unsigned char *)class);
        else
-               add_hash (user_class_hash,
+               add_hash (vendor_class_hash,
                          tname, strlen (tname), (unsigned char *)class);
        return class;
 }
diff --git a/dhcp.c b/dhcp.c
index fc5e2e1aed5e65231bf617cd7e9e5db5c62ee11d..a78e643c0856b85887eb7ea6577b10f6b76da2ed 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcp.c,v 1.34 1996/09/11 05:52:18 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcp.c,v 1.35 1996/12/31 02:02:17 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -492,7 +492,7 @@ void ack_lease (packet, lease, offer, when)
 
        if (packet -> options [DHO_DHCP_USER_CLASS_ID].len) {
                user_class =
-                       find_class (0,
+                       find_class (1,
                                    packet ->
                                    options [DHO_DHCP_USER_CLASS_ID].data,
                                    packet ->
index 6f7617c2f01af7d4aa213bdadbdd0dbda0630986..437c9137b2f6d886fe6c8d145eadfbb3fabbdc86 100644 (file)
--- a/memory.c
+++ b/memory.c
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: memory.c,v 1.22 1996/11/08 20:09:10 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: memory.c,v 1.23 1996/12/31 02:02:54 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -806,7 +806,7 @@ struct class *add_class (type, name)
                add_hash (user_class_hash,
                          tname, strlen (tname), (unsigned char *)class);
        else
-               add_hash (user_class_hash,
+               add_hash (vendor_class_hash,
                          tname, strlen (tname), (unsigned char *)class);
        return class;
 }
index fc5e2e1aed5e65231bf617cd7e9e5db5c62ee11d..a78e643c0856b85887eb7ea6577b10f6b76da2ed 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcp.c,v 1.34 1996/09/11 05:52:18 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcp.c,v 1.35 1996/12/31 02:02:17 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -492,7 +492,7 @@ void ack_lease (packet, lease, offer, when)
 
        if (packet -> options [DHO_DHCP_USER_CLASS_ID].len) {
                user_class =
-                       find_class (0,
+                       find_class (1,
                                    packet ->
                                    options [DHO_DHCP_USER_CLASS_ID].data,
                                    packet ->