]> git.ipfire.org Git - people/ms/dma.git/commitdiff
Check the parsed recipient address for validity.
authorPeter Pentchev <roam@ringlet.net>
Tue, 22 Jun 2010 23:39:56 +0000 (01:39 +0200)
committerSimon Schubert <2@0x2c.org>
Mon, 28 Jun 2010 22:50:56 +0000 (00:50 +0200)
mail.c

diff --git a/mail.c b/mail.c
index db2bca43eef7798b5dc02fce3473ae31548ad033..b8ca54de64080d0558c4d255729e3da14e03b252 100644 (file)
--- a/mail.c
+++ b/mail.c
@@ -324,7 +324,9 @@ newaddr:
        if (addr == NULL)
                errlog(1, NULL);
 
-       add_recp(queue, addr, 1);
+       if (add_recp(queue, addr, 1) != 0)
+               errlogx(1, "invalid recipient `%s'", addr);
+
        goto again;
 }