* Let the reader beware.
*
* $Log$
- * Revision 1.13 1987-08-04 02:40:30 wesommer
- * Do end run around minor hotspot.
+ * Revision 1.14 1987-09-12 20:41:50 wesommer
+ * Be paranoid.
*
+ * Revision 1.14 87/09/12 20:08:01 wesommer
+ * Add some defensive programming to defend against people who don't
+ * understand what the contents of the cl struct mean.
+ *
+ * Revision 1.13 87/08/04 02:40:30 wesommer
+ * Do end run around minor hotspot.
+ *
* Revision 1.12 87/08/04 01:50:00 wesommer
* Rearranged messages.
*
* Set up the new connection and reply to the client
*/
cp = (client *)malloc(sizeof *cp);
+ bzero(cp, sizeof(*cp));
cp->state = CL_STARTING;
cp->action = CL_ACCEPT;
cp->con = newconn;
* Copyright (C) 1987 by the Massachusetts Institute of Technology
*
* $Log$
- * Revision 1.6 1987-08-04 02:40:47 wesommer
- * Clean up messages.
+ * Revision 1.7 1987-09-12 20:42:05 wesommer
+ * Be paranoid.
*
+ * Revision 1.6 87/08/04 02:40:47 wesommer
+ * Clean up messages.
+ *
* Revision 1.5 87/07/14 00:40:18 wesommer
* Rearranged logging.
*
char buf[REALM_SZ+INST_SZ+ANAME_SZ];
extern int krb_err_base;
+ if (cl->clname) {
+ free(cl->clname);
+ cl->clname = 0;
+ bzero(&cl->kname, sizeof(cl->kname));
+ }
+
auth.length = cl->args->sms_argl[0];
-
bcopy(cl->args->sms_argv[0], (char *)auth.dat, auth.length);
auth.mbz = 0;
cl->clname = (char *)malloc((unsigned)(strlen(buf)+1));
(void) strcpy(cl->clname, buf);
+ bzero(&ad, sizeof(ad)); /* Clean up session key, etc. */
if (log_flags & LOG_RES) {
com_err(whoami, 0, "Authenticated to %s", cl->clname);
}