X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=mts%2Fsmtp%2Fsmtp.c;h=05e292ff96ff5991c9213818ed803b8e18f9f766;hb=5658c6c561ca13aae18a68f178457245176526fc;hp=7af8d30980de2e60066ebc4604e1b5d1cc2214d8;hpb=86048c14a070e3382577dd22519319bce77c70b9;p=mmh diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index 7af8d30..05e292f 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -144,7 +144,6 @@ static char *EHLOset (char *); static int sm_fwrite(char *, int); static int sm_fputs(char *); static int sm_fputc(int); -static int sm_fgetc(FILE *); static void sm_fflush(void); static int sm_fgets(char *, int, FILE *); @@ -904,20 +903,12 @@ sm_auth_sasl(char *user, char *mechlist, char *inhost) 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;