Mercurial > dnsbl
comparison src/context.cpp @ 368:fd145e9a3df0 stable-6-0-48
fix infinite loop
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 17 Jan 2017 14:09:30 -0800 |
parents | bcfbffe254ed |
children | 879a470c6ac3 |
comparison
equal
deleted
inserted
replaced
367:78de917bacf4 | 368:fd145e9a3df0 |
---|---|
1115 const char *p = signers; | 1115 const char *p = signers; |
1116 do { | 1116 do { |
1117 if ((strncasecmp(p, s, n) == 0) && ((p[n] == '\0') || (p[n] == ','))) return true; | 1117 if ((strncasecmp(p, s, n) == 0) && ((p[n] == '\0') || (p[n] == ','))) return true; |
1118 p = strchr(p, ','); | 1118 p = strchr(p, ','); |
1119 if (!p) return false; | 1119 if (!p) return false; |
1120 p++; | |
1120 } while (true); | 1121 } while (true); |
1121 } | 1122 } |
1122 | 1123 |
1123 | 1124 |
1124 const char *CONTEXT::acceptable_content(recorder &memory, int score, int bulk, const char *queueid, string_set &signers, const char *from, string& msg) { | 1125 const char *CONTEXT::acceptable_content(recorder &memory, int score, int bulk, const char *queueid, string_set &signers, const char *from, string& msg) { |