X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=mts%2Fsmtp%2Fsmtp.c;fp=mts%2Fsmtp%2Fsmtp.c;h=7af8d30980de2e60066ebc4604e1b5d1cc2214d8;hp=37a7b07c7c32d629a17fb16c98073e15d264e695;hb=86048c14a070e3382577dd22519319bce77c70b9;hpb=21ddd311ae7c2d5798c8fdd6add1ef229f82950b diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index 37a7b07..7af8d30 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -144,7 +144,7 @@ static char *EHLOset (char *); static int sm_fwrite(char *, int); static int sm_fputs(char *); static int sm_fputc(int); -static int sm_getc(void); +static int sm_fgetc(FILE *); static void sm_fflush(void); static int sm_fgets(char *, int, FILE *); @@ -326,6 +326,13 @@ sendmail_init (char *client, char *server, int watch, int verbose, client = "localhost"; #endif +#ifdef CYRUS_SASL + sasl_inbuffer = malloc(SASL_MAXRECVBUF); + if (!sasl_inbuffer) + return sm_ierror("Unable to allocate %d bytes for read buffer", + SASL_MAXRECVBUF); +#endif /* CYRUS_SASL */ + if (pipe (pdi) == NOTOK) return sm_ierror ("no pipes"); if (pipe (pdo) == NOTOK) {