comparison src/scanner.cpp @ 467:f5b394bec28c

allow checking names without A records on uribl lists; improve extraction of fake TLDs from our RPZ zone
author Carl Byington <carl@five-ten-sg.com>
date Wed, 16 Dec 2020 10:25:37 -0800
parents 1686cb639269
children 5209e92b4885
comparison
equal deleted inserted replaced
466:8ad675a5d448 467:f5b394bec28c
1279 } 1279 }
1280 } 1280 }
1281 1281
1282 void fsa::push(u_char *buf, int len) { 1282 void fsa::push(u_char *buf, int len) {
1283 if (debug_syslog > 10) { 1283 if (debug_syslog > 10) {
1284 char msg[200], mbuf[200]; 1284 char msg[400], mbuf[200];
1285 int n = sizeof(mbuf) - 1; 1285 int n = sizeof(mbuf) - 1;
1286 if (len < n) n = len; 1286 if (len < n) n = len;
1287 memcpy(mbuf, buf, n); 1287 memcpy(mbuf, buf, n);
1288 mbuf[n] = '\0'; 1288 mbuf[n] = '\0';
1289 snprintf(msg, sizeof(msg), "%s sees %s", myname, mbuf); 1289 snprintf(msg, sizeof(msg), "%s sees %s", myname, mbuf);