]>
Commit | Line | Data |
---|---|---|
1af3e9c2 AM |
1 | diff -urN libdomainkeys-0.66.org/domainkeys.c libdomainkeys-0.66/domainkeys.c |
2 | --- libdomainkeys-0.66.org/domainkeys.c 2005-06-21 04:55:39.000000000 +0200 | |
3 | +++ libdomainkeys-0.66/domainkeys.c 2005-06-25 17:04:10.498813408 +0200 | |
4 | @@ -1384,11 +1384,14 @@ | |
5 | } | |
6 | if (s && *s && s[1] && s[1] != '@') | |
7 | { | |
8 | - s = strchr(s, '@') + 1; | |
9 | - if (*s == '\0') | |
10 | - { | |
11 | - //make sure we have an actual domain after @ | |
12 | - s = NULL; | |
13 | + s = strchr(s, '@'); | |
14 | + if (s) { | |
15 | + s += 1; | |
16 | + if (*s == '\0') | |
17 | + { | |
18 | + //make sure we have an actual domain after @ | |
19 | + s = NULL; | |
20 | + } | |
21 | } | |
22 | } | |
23 | else |