Module: ngircd.git Branch: master Commit: 2c1b6280fac393c8977df03d94cc6a1dcf2a5f5d URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=2c1b6...
Author: Alexander Barton alex@barton.de Date: Tue Jan 20 16:49:34 2009 +0100
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.
---
src/ngircd/irc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c index a0dc0ea..2466b6b 100644 --- a/src/ngircd/irc.c +++ b/src/ngircd/irc.c @@ -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, "*?")])
ngircd-commits@lists.barton.de