Mercurial > dnsbl
comparison src/context.cpp @ 175:e726e1a61ef9
allow manual whitelisting with stamp 1 to remove a whitelist entry
author | carl |
---|---|
date | Sun, 23 Sep 2007 14:08:17 -0700 |
parents | da0c41b9f672 |
children | d6531c702be3 |
comparison
equal
deleted
inserted
replaced
174:da0c41b9f672 | 175:e726e1a61ef9 |
---|---|
450 if (i == rcpts.end()) { | 450 if (i == rcpts.end()) { |
451 rcpts[who] = when; | 451 rcpts[who] = when; |
452 } | 452 } |
453 else { | 453 else { |
454 time_t wh = (*i).second; | 454 time_t wh = (*i).second; |
455 if (when > wh) (*i).second = when; | 455 if ((when == 1) || (when > wh)) (*i).second = when; |
456 free(who); | 456 free(who); |
457 } | 457 } |
458 } | 458 } |
459 } | 459 } |
460 } | 460 } |