comparison 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
comparison
equal deleted inserted replaced
370:d86d7b4b8995 371:f122535c589e
517 gint sock; 517 gint sock;
518 518
519 DEBUG(5) debugf("smtp_out_open_child entered, cmd = %s\n", cmd); 519 DEBUG(5) debugf("smtp_out_open_child entered, cmd = %s\n", cmd);
520 psb->remote_host = host; 520 psb->remote_host = host;
521 sock = child(cmd); 521 sock = child(cmd);
522 if (sock > 0) { 522 if (sock <= 0) {
523 psb = create_smtpbase(sock); 523 return NULL;
524 psb->remote_host = NULL; 524 }
525 525 psb = create_smtpbase(sock);
526 return psb; 526 psb->remote_host = NULL;
527 } 527
528 528 return psb;
529 return NULL;
530 } 529 }
531 530
532 gboolean 531 gboolean
533 smtp_out_rset(smtp_base *psb) 532 smtp_out_rset(smtp_base *psb)
534 { 533 {