diff options
Diffstat (limited to 'lib/smtp.c')
-rw-r--r-- | lib/smtp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index bed46a99a..594d09a14 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -1264,16 +1264,17 @@ static CURLcode smtp_block_statemach(struct connectdata *conn) required */ static CURLcode smtp_init(struct connectdata *conn) { + CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; struct SMTP *smtp = data->state.proto.smtp; if(!smtp) { smtp = data->state.proto.smtp = calloc(sizeof(struct SMTP), 1); if(!smtp) - return CURLE_OUT_OF_MEMORY; + result = CURLE_OUT_OF_MEMORY; } - return CURLE_OK; + return result; } /* For the SMTP "protocol connect" and "doing" phases only */ |