sasl_inbuffer because it could be used in sm_fget (). Also,
removed allocation of sasl_inbuffer because that was done in
either smtp_init () or sendmail_init ().
+2009-12-21 David Levine <levinedl@acm.org>
+
+ * mts/smtp/smtp.c: In sm_auth_sasl (), removed zeroing of
+ sasl_inbuffer because it could be used in sm_fget (). Also,
+ removed allocation of sasl_inbuffer because that was done in
+ either smtp_init () or sendmail_init ().
+
2009-01-17 Eric Gillespie <epg@pretzelnet.org>
* etc/mhn.defaults.sh: Never try to make mhshow start xterm.
return NOTOK;
}
sasl_outbuflen = 0;
-
- sasl_inbuffer = malloc(SASL_MAXRECVBUF);
-
- if (sasl_inbuffer == NULL) {
- sm_ierror("Unable to allocate %d bytes for SASL input "
- "buffer", SASL_MAXRECVBUF);
- free(sasl_outbuffer);
- return NOTOK;
- }
sasl_inbuflen = 0;
sasl_inptr = sasl_inbuffer;
} else {
sasl_outbuffer = NULL;
- sasl_inbuffer = NULL;
+ /* Don't NULL out sasl_inbuffer because it could be used in
+ sm_fgetc (). */
}
sasl_complete = 1;