Mercurial > dnsbl
diff src/scanner.cpp @ 17:b6a4b72bb96e
add scanning for bare hostnames
author | carl |
---|---|
date | Thu, 29 Apr 2004 22:05:03 -0700 |
parents | 2ae8d953f1d0 |
children | 041ea016b684 |
line wrap: on
line diff
--- a/src/scanner.cpp Thu Apr 29 21:56:22 2004 -0700 +++ b/src/scanner.cpp Thu Apr 29 22:05:03 2004 -0700 @@ -882,12 +882,14 @@ // host name recognizer case h_end: { count--; + pending[count] = 0; char *tld; for (int i=0; (tld = tlds[i]); i++) { int n = strlen(tld); if (count > n) { if (strncasecmp((const char *)(pending+count-n), tld, n) == 0) { register_string(*hosts, (char*)pending); + break; } } }