Mercurial > dnsbl
changeset 17:b6a4b72bb96e
add scanning for bare hostnames
author | carl |
---|---|
date | Thu, 29 Apr 2004 22:05:03 -0700 |
parents | 2ae8d953f1d0 |
children | 041ea016b684 |
files | src/scanner.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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; } } }