comparison src/dnsbl.cpp @ 139:003026deaed1 stable-5-21

add smtp auth rate limits
author carl
date Tue, 26 Sep 2006 15:21:17 -0700
parents 9d0bc30b4576
children 4028de9b46dd
comparison
equal deleted inserted replaced
138:9d0bc30b4576 139:003026deaed1
153 if (i == rcpt_counts.end()) { 153 if (i == rcpt_counts.end()) {
154 user = strdup(user); 154 user = strdup(user);
155 rcpt_counts[user] = c; 155 rcpt_counts[user] = c;
156 } 156 }
157 else { 157 else {
158 c = (*i).second++; 158 c = ++((*i).second);
159 } 159 }
160 pthread_mutex_unlock(&rate_mutex); 160 pthread_mutex_unlock(&rate_mutex);
161 return c; 161 return c;
162 } 162 }
163 163