]> git.ipfire.org Git - people/ms/dma.git/blob - patches/28-valid-recipient.patch
Really fix the build on the GNU Hurd.
[people/ms/dma.git] / patches / 28-valid-recipient.patch
1 Description: Check the parsed recipient address for validity.
2 Origin: other: http://svn.ringlet.net/svn/ringlet/mail/dma/
3 Forwarded: yes
4 Author: Peter Pentchev <roam@ringlet.net>
5 Last-Update: 2010-06-21
6
7 --- a/mail.c
8 +++ b/mail.c
9 @@ -428,8 +428,8 @@
10 if (addr == NULL)
11 errlog(1, NULL);
12
13 - add_recp(queue, addr, 1);
14 - fprintf(stderr, "parsed `%s'\n", addr);
15 + if (add_recp(queue, addr, 1) != 0)
16 + errlogx(1, "invalid recipient `%s'", addr);
17 goto again;
18 }
19