coar 99/04/09 20:46:00
Modified: src/support htpasswd.c
Log:
free() some malloc()ed memory on error exit -- and remove a
stray debugging message (d'oh!).
Revision Changes Path
1.27 +2 -1 apache-1.3/src/support/htpasswd.c
Index: htpasswd.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/support/htpasswd.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- htpasswd.c 1999/04/08 22:17:53 1.26
+++ htpasswd.c 1999/04/10 03:45:59 1.27
@@ -244,6 +244,7 @@
pw = strd((char *) getpass("New password: "));
if (strcmp(pw, (char *) getpass("Re-type new password: "))) {
ap_cpystrn(record, "password verification error", (rlen - 1));
+ free(pw);
return ERR_PWMISMATCH;
}
}
@@ -260,7 +261,7 @@
ap_cpystrn(cpw, (char *)crypt(pw, salt), sizeof(cpw) - 1);
break;
}
- fprintf(stderr, "Yow!\n");
+
/*
* Now that we have the smashed password, we don't need the
* plaintext one any more.