Commit Diff
Diff:
5a3128243f4b609b79a2b97ed8cef780198338bb
2c1b6280fac393c8977df03d94cc6a1dcf2a5f5d
Commit:
2c1b6280fac393c8977df03d94cc6a1dcf2a5f5d
Tree:
0012f82b85d7a8febacd1251bac33c5c0f8a5f26
Author:
Alexander Barton <alex@barton.de>
Committer:
Alexander Barton <alex@barton.de>
Date:
Tue Jan 20 15:49:34 2009 UTC
Message:
RFC 2812, sec. 3.3.1: really check for the last dot This fixes commit 5a3128243f4b60 and makes the test suite ("make check") run again without errors.
blob - a0dc0ea9b8ed2b3722b736af9cf80575eab85627
blob + 2466b6bf9e47ef9ed7c084fe0a2af93a6570cf0f
--- src/ngircd/irc.c
+++ src/ngircd/irc.c
@@ -516,7 +516,7 @@ Send_Message_Mask(CLIENT * from, char * command, char
* 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, "*?")])
IRCNow