Mercurial > masqmail
diff src/smtp_out.c @ 371:f122535c589e
Refactoring: early failure exit.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Tue, 25 Oct 2011 13:51:43 +0200 |
parents | b27f66555ba8 |
children | b0708fac99dd |
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