Mercurial > masqmail
changeset 371:f122535c589e
Refactoring: early failure exit.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Tue, 25 Oct 2011 13:51:43 +0200 |
parents | d86d7b4b8995 |
children | b0708fac99dd |
files | src/smtp_out.c |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/smtp_out.c Tue Oct 25 13:50:27 2011 +0200 +++ b/src/smtp_out.c Tue Oct 25 13:51:43 2011 +0200 @@ -519,14 +519,13 @@ DEBUG(5) debugf("smtp_out_open_child entered, cmd = %s\n", cmd); psb->remote_host = host; sock = child(cmd); - if (sock > 0) { - psb = create_smtpbase(sock); - psb->remote_host = NULL; + if (sock <= 0) { + return NULL; + } + psb = create_smtpbase(sock); + psb->remote_host = NULL; - return psb; - } - - return NULL; + return psb; } gboolean