Minor patch to server/dhcpd.c

sthaug at nethelp.no sthaug at nethelp.no
Sun Aug 2 15:48:57 UTC 2009


During my investigation into running several dhcpd's on the same 
physical interface,

	 https://lists.isc.org/pipermail/dhcp-users/2009-August/009667.html

I also came across a couple of rather obviously incorrect error
messages in server/dhcpd.c. Patch for 4.1.1b1 included below.

Steinar Haug, Nethelp consulting, sthaug at nethelp.no
----------------------------------------------------------------------
--- server/dhcpd.c.orig	2009-08-01 18:27:32.000000000 +0200
+++ server/dhcpd.c	2009-08-01 18:28:55.000000000 +0200
@@ -998,7 +998,7 @@
 		if (db.len == 4) {
 			memcpy (&limited_broadcast, db.data, 4);
 		} else
-			log_fatal ("invalid remote port data length");
+			log_fatal ("invalid broadcast address data length");
 		data_string_forget (&db, MDL);
 	}
 
@@ -1012,7 +1012,7 @@
 		if (db.len == 4) {
 			memcpy (&local_address, db.data, 4);
 		} else
-			log_fatal ("invalid remote port data length");
+			log_fatal ("invalid local address data length");
 		data_string_forget (&db, MDL);
 	}
 



More information about the dhcp-users mailing list