diff options
author | Gilles Chehade <gilles@poolp.org> | 2018-05-24 14:59:34 +0200 |
---|---|---|
committer | Gilles Chehade <gilles@poolp.org> | 2018-05-24 14:59:34 +0200 |
commit | be6ef06cba9484d008d9f057e6b25d863cf278ff (patch) | |
tree | 3246bcccf3ebd8faf352a619ab7576eb8415294b /smtpd/smtp_client.c | |
parent | not yet (diff) | |
download | OpenSMTPD-be6ef06cba9484d008d9f057e6b25d863cf278ff.tar.xz OpenSMTPD-be6ef06cba9484d008d9f057e6b25d863cf278ff.zip |
sync with OpenBSD
Diffstat (limited to 'smtpd/smtp_client.c')
-rw-r--r-- | smtpd/smtp_client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/smtpd/smtp_client.c b/smtpd/smtp_client.c index 7de51f3f..6ea6be70 100644 --- a/smtpd/smtp_client.c +++ b/smtpd/smtp_client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtp_client.c,v 1.2 2018/04/26 21:19:46 eric Exp $ */ +/* $OpenBSD: smtp_client.c,v 1.4 2018/05/24 11:01:30 eric Exp $ */ /* * Copyright (c) 2018 Eric Faurot <eric@openbsd.org> @@ -550,7 +550,8 @@ smtp_client_response(struct smtp_client *proto, const char *line) * more lines if another rcpt needs a status. */ for (i = 0, seen = 0; i < proto->mail->rcptcount; i++) { - if (rcpt[i].done) + rcpt = &proto->mail->rcpt[i]; + if (rcpt->done) continue; if (seen) { io_set_read(proto->io); |