]> Cypherpunks repositories - gostls13.git/commit
net/mail: return error on empty address list
authorIan Lance Taylor <iant@golang.org>
Fri, 14 Aug 2020 20:29:07 +0000 (13:29 -0700)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 27 Aug 2020 14:30:30 +0000 (14:30 +0000)
commit3e636ab9ad31040aff2d484237808907a776cec6
tree8711d6febf53f78264e8ad91de909415d8499fc6
parent2aba467933b3252c758b65146d2ea5a5cff196da
net/mail: return error on empty address list

This restores the handling accidentally changed in CL 217377.

Fixes #40803
For #36959

Change-Id: If77fbc0c2a1dde4799f760affdfb8dde9bcaf458
Reviewed-on: https://go-review.googlesource.com/c/go/+/248598
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Jeremy Fishman <jfishman@cloudflare.com>
src/net/mail/message.go
src/net/mail/message_test.go