Commit 97034a26 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Tagged v1.82

parent f2823439
This diff is collapsed.
This diff is collapsed.
####
# Policy Daemon v1.80
# Policy Daemon v1.82
#######################
Policyd is an anti-spam plugin for Postfix (written in C) that
......
......@@ -46,6 +46,7 @@ w_mysql_query(unsigned int volatile fd, const char *function)
if(timenow >= (last_mysql_failure+30))
{ /* timer has expired */
mysql_failure_count=0;
mysql_close(mysql);
mysql = db_connect(MYSQLDBASE); /* reconnect to database */
} else { /* timer has not expired */
......@@ -98,8 +99,7 @@ w_mysql_query(unsigned int volatile fd, const char *function)
signal (SIGALRM, SIG_DFL);
/* ensure that we only go into bypass mode after 3 consecutive failures */
if(mysql_failure_count > 0)
mysql_failure_count--; /* decrease count if that is not the case */
mysql_failure_count=0;
return (0); /* success */
}
......
......@@ -71,7 +71,7 @@
/* CONFIGS */
#define PROJECT "policyd"
#define VERSION "v1.81a"
#define VERSION "v1.82"
/* Miscellaneous constants */
#define LISTENQ 1023 /* 2nd argument to listen() */
......
%define ver v1.80
%define ver v1.82
%define rel 1
#%{!?key: %define fedora 0}
......
%define ver v1.80
%define ver v1.82
%define rel 1
%{!?key: %define fedora 0}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment