File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -372,11 +372,13 @@ deliver_to_host(struct qitem *it, struct mx_hostentry *host)
372
372
host->host, host->addr, c, neterr); \
373
373
snprintf(errmsg, sizeof(errmsg), "%s [%s] did not like our %s:\n%s", \
374
374
host->host, host->addr, c, neterr); \
375
- return (-1); \
375
+ error = -1; \
376
+ goto out; \
376
377
} else if (res != exp) { \
377
378
syslog(LOG_NOTICE, "remote delivery deferred: %s [%s] failed after %s: %s", \
378
379
host->host, host->addr, c, neterr); \
379
- return (1); \
380
+ error = 1; \
381
+ goto out; \
380
382
}
381
383
382
384
/* Check first reply from remote host */
@@ -426,7 +428,8 @@ deliver_to_host(struct qitem *it, struct mx_hostentry *host)
426
428
syslog (LOG_ERR , "remote delivery failed:"
427
429
" SMTP login failed: %m" );
428
430
snprintf (errmsg , sizeof (errmsg ), "SMTP login to %s failed" , host -> host );
429
- return (-1 );
431
+ error = -1 ;
432
+ goto out ;
430
433
}
431
434
/* SMTP login is not available, so try without */
432
435
else if (error > 0 ) {
You can’t perform that action at this time.
0 commit comments