Skip to content

Commit

Permalink
Look at correct string
Browse files Browse the repository at this point in the history
  • Loading branch information
José Borges Ferreira committed Apr 19, 2018
1 parent 206b0a6 commit 161a46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smf-spf.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ static int address_preparation(register char *dst, register const char *src) {
tail = strlen(dst) - 1;
if ((dst[0] >= 0x07 && dst[0] <= 0x0d) || dst[0] == 0x20) return 0;
if ((dst[tail] >= 0x07 && dst[tail] <= 0x0d) || dst[tail] == 0x20) return 0;
local = strchr(dst, '@');
local = strchr(start, '@');
if (!local || ((local - start) > MAXLOCALPART)) return 0;
return 1;
}
Expand Down

0 comments on commit 161a46b

Please sign in to comment.