summaryrefslogtreecommitdiff
path: root/common
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
commit41a65ce885872f04074061f00414b8d4fbab0caf (patch)
treef63bd94b74e784cac62ea1172d8f607efe3f4390 /common
parent40fad4a950ddda4e2f94d0f74c4503a63c838f4d (diff)
Handle empty addresses properly.
Diffstat (limited to 'common')
-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)