RFC 2812, sec. 3.3.1: really check for the last dot

This fixes commit 5a3128243f and makes the test suite ("make check")
run again without errors.
This commit is contained in:
Alexander Barton 2009-01-20 16:49:34 +01:00
parent 5a3128243f
commit 2c1b6280fa
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ Send_Message_Mask(CLIENT * from, char * command, char * targetMask,
* RFC 2812, sec. 3.3.1 requires that targetMask have at least one
* dot (".") and no wildcards ("*", "?") following the last one.
*/
check_wildcards = strchr(targetMask, '.');
check_wildcards = strrchr(targetMask, '.');
assert(check_wildcards != NULL);
if (check_wildcards &&
check_wildcards[strcspn(check_wildcards, "*?")])