Index: src/s_conf.c
===================================================================
RCS file: /home/cmunk/ircsystems/cvsroot/unreal/src/s_conf.c,v
retrieving revision 1.1.1.1.6.1.2.375
diff -u -r1.1.1.1.6.1.2.375 s_conf.c
--- src/s_conf.c	18 Apr 2007 13:40:02 -0000	1.1.1.1.6.1.2.375
+++ src/s_conf.c	21 Apr 2007 17:46:56 -0000
@@ -5945,6 +5945,12 @@
 				continue;
 			}
 			has_passwordreceive = 1;
+			if (strlen(cep->ce_vardata) > PASSWDLEN)
+			{
+				config_error("%s:%i: link::password-receive cannot exceed %d characters in length",
+					     ce->ce_fileptr->cf_filename, ce->ce_varlinenum, PASSWDLEN);
+				errors++;
+			}
 			if (Auth_CheckError(cep) < 0)
 				errors++;
 		}
@@ -5963,6 +5969,12 @@
 					     ce->ce_fileptr->cf_filename, ce->ce_varlinenum);
 				errors++;
 			}
+			if (strlen(cep->ce_vardata) > PASSWDLEN) 
+			{
+				config_error("%s:%i: link::password-connect cannot exceed %d characters in length",
+					     ce->ce_fileptr->cf_filename, ce->ce_varlinenum, PASSWDLEN);
+				errors++;
+			}
 		}
 		else if (!strcmp(cep->ce_varname, "class"))
 		{
