Skip to content

Commit

Permalink
Fix lowercase logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
svarshavchik committed May 8, 2020
1 parent 66a16d2 commit 8e39394
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions courier/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2020-05-07 Alessandro Vesely <[email protected]>

* rfc1035/rfc1035search.c: More back-end support for simultaneous
DNS queries.

* Fix logic that converts domain names to lowercase.

2020-04-26 Sam Varshavchik <[email protected]>

* Fixed defaults in the mkesmtpdcert script.
Expand Down
8 changes: 4 additions & 4 deletions courier/courier/libs/addrlower.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ char *udomainlower(const char *c)
char *ud;
char *s;

d=strchr(c, '@');
d=strrchr(c, '@');

if (!d)
return courier_strdup(c);
Expand All @@ -45,7 +45,7 @@ static char *udomainutf82(const char *c)
char *ud;
char *s;

d=strchr(c, '@');
d=strrchr(c, '@');

if (!d)
return courier_strdup(c);
Expand Down Expand Up @@ -78,7 +78,7 @@ static char *udomainace2(const char *c)
char *ud;
char *s;

d=strchr(c, '@');
d=strrchr(c, '@');

if (!d)
return courier_strdup(c);
Expand Down Expand Up @@ -126,7 +126,7 @@ char *ulocallower(const char *c)
== 0 && (c[10] == '\0' || c[10] == '@')))
{
char *c_copy=courier_strdup(c);
char *at=strchr(c_copy, '@');
char *at=strrchr(c_copy, '@');
char save;
char *lower_username;

Expand Down

0 comments on commit 8e39394

Please sign in to comment.