summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index e582ea735a..d15ca9336e 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -3454,11 +3454,11 @@ static void process(void)
*/
static int error_count=0;
static time_t error_time=0;
- if (error_count==0) {
+ if (error_count++==0) {
error_time = t;
} else if (error_time != t) {
error_count = 0;
- } else if (error_count++ > 2) {
+ } else if (error_count > 2) {
exit_server("looping in process()\n");
}
}