diff options
| author | Matthias Andree <matthias.andree@gmx.de> | 2009-10-28 16:24:23 +0000 | 
|---|---|---|
| committer | Matthias Andree <matthias.andree@gmx.de> | 2009-10-28 16:24:23 +0000 | 
| commit | 0461562f6326dfff4c6eedb18a5b831eb8475efe (patch) | |
| tree | f545fa6add1363ec70e1d90ff5ff137e5d8ee92d /smtp.c | |
| parent | c502aa13fd20d1bb367e50c66e4d92878ca69fe8 (diff) | |
| download | fetchmail-0461562f6326dfff4c6eedb18a5b831eb8475efe.tar.gz fetchmail-0461562f6326dfff4c6eedb18a5b831eb8475efe.tar.bz2 fetchmail-0461562f6326dfff4c6eedb18a5b831eb8475efe.zip  | |
Regression fix for multiline SMTP bugfix. Reported by Thomas Jarosch.
svn path=/branches/BRANCH_6-3/; revision=5445
Diffstat (limited to 'smtp.c')
| -rw-r--r-- | smtp.c | 4 | 
1 files changed, 2 insertions, 2 deletions
@@ -352,16 +352,16 @@ int SMTP_ok(int sock, char smtp_mode, int mintimeout)  	last_smtp_ok = time((time_t *) NULL); +	strlcat(smtp_response, reply,  sizeof(smtp_response)); +  	if (strchr("123", reply[0])  		&& isdigit((unsigned char)reply[1])  		&& isdigit((unsigned char)reply[2])  		&& strchr(" ", reply[3])) /* matches space and \0 */ { -	    strlcat(smtp_response, reply, sizeof(smtp_response));  	    return SM_OK;  	} else if (reply[3] != '-')  	    return SM_ERROR; -	strlcat(smtp_response, reply,  sizeof(smtp_response));  	strlcat(smtp_response, "\r\n", sizeof(smtp_response));  	/* set an alarm for smtp ok */  | 
