From 3c6bec8d6aae44e0a22b151b3a517b50fc1b09ac Mon Sep 17 00:00:00 2001 From: Max Lv Date: Mon, 10 Oct 2016 12:00:30 +0800 Subject: [PATCH] Fix a typo --- src/acl.h | 2 +- src/server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/acl.h b/src/acl.h index 0f7c8e74..2ab1c917 100644 --- a/src/acl.h +++ b/src/acl.h @@ -26,7 +26,7 @@ #define BLACK_LIST 0 #define WHITE_LIST 1 -#define MAX_TRIES 128 +#define MAX_TRIES 64 #define MALICIOUS 8 #define SUSPICIOUS 4 #define BAD 2 diff --git a/src/server.c b/src/server.c index c1f7e010..33ba8d72 100644 --- a/src/server.c +++ b/src/server.c @@ -265,7 +265,7 @@ is_header_complete(const buffer_t *buf) // IP V6 header_len += sizeof(struct in6_addr); } else { - return 1; + return 0; } // len of port