~mdw
/
qmail
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
addrcheck: Take the domain as following the last `@', not the first.
[qmail]
/
addrcheck.c
diff --git
a/addrcheck.c
b/addrcheck.c
index
0b189a7
..
63281a3
100644
(file)
--- a/
addrcheck.c
+++ b/
addrcheck.c
@@
-264,7
+264,7
@@
int addrcheck(int cdb, const char *addr, const char *sender, int *rc)
static stralloc l = STRALLOC_INIT;
len = str_len(addr);
- at = str_chr(addr, '@');
+ at = str_
r
chr(addr, '@');
if (!addr[at])
return (local(cdb, addr, len, sender, rc));