$Log$
- Revision 573.69 2001/01/15 20:34:29 ajc
- *** empty log message ***
+ Revision 573.70 2001/01/15 23:59:26 ajc
+ * user_ops.c: reject NULL password in CtdlTryPassword() instead of crashing
+
Revision 573.68 2001/01/15 20:34:04 ajc
* "Path:" removed for now because it confuses brain-dead Microsoft shitware
{
int a;
+ if (string == NULL) return;
if (strlen(string)==0) return;
/* Convert non-printable characters to blanks */
if (getuser(&CC->usersupp, CC->curr_user)) {
return pass_internal_error;
}
+ if (password == NULL) {
+ return pass_wrong_password;
+ }
code = (-1);
if (CC->usersupp.uid == BBSUID) {
strproc(password);