From c771c6397bd4ec0da7fbf5a2ab4ce39a809e980a Mon Sep 17 00:00:00 2001 From: "Nicholas.ni" Date: Wed, 7 Jul 2021 10:42:36 +0800 Subject: [PATCH] fix some problems --- hydra-http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hydra-http.c b/hydra-http.c index b2e8db8..31fbb1f 100644 --- a/hydra-http.c +++ b/hydra-http.c @@ -501,8 +501,8 @@ int32_t service_http_init(char *ip, int32_t sp, unsigned char options, char *mis match_status_code[pos++] = value; - if (pos > MAX_STATUS_CODE_SIZE) { - hydra_report(stderr, "Match up to %d status codes.", MAX_STATUS_CODE_SIZE); + if (pos >= MAX_STATUS_CODE_SIZE) { + hydra_report(stderr, "Status code quantity must be less than %d", MAX_STATUS_CODE_SIZE); free(cp); return -1; }