summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-09-07 23:28:53 +0000
committerStef Walter <stef@memberwebs.com>2005-09-07 23:28:53 +0000
commitd275e658878f9ad2814792ccebb18448de673ca6 (patch)
tree09c8129bcbaa6521153e62890c453f1520a03a8e
parent2eb956b5dbe9aeb2009ec04422fd096d34ccf10b (diff)
Handle empty addresses properly.
-rw-r--r--common/smtppass.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/smtppass.c b/common/smtppass.c
index 46c198d..7110152 100644
--- a/common/smtppass.c
+++ b/common/smtppass.c
@@ -1135,6 +1135,10 @@ static char* parse_address(char* line)
* We parse out emails in the form of <blah@blah.com>
* as well as accept other addresses.
*/
+
+ if(strncmp(line, "<>", 2) == 0)
+ return("<>");
+
if(line[0] == '<')
{
if((t = strchr(line, '>')) != NULL)