From 5740519e561441eb4addaf571ffbf2e3da74c997 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 28 Feb 2020 13:39:58 +0100 Subject: [PATCH] get_certificate_serial(): Remove dead code Fixes CID 267164 "Logically dead code". Sponsored by: Robert Klemme --- ssl.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ssl.c b/ssl.c index 55269ddb..649b301d 100644 --- a/ssl.c +++ b/ssl.c @@ -1847,15 +1847,6 @@ static unsigned long get_certificate_serial(struct client_state *csp) unsigned long serial = 0; int i = CERT_SERIAL_NUM_LENGTH; - /* Length of hash is 16 bytes, we must avoid to read next chars */ - if (i > 16) - { - i = 16; - } - if (i < 2) - { - i = 2; - } for (; i >= 0; i--) { -- 2.39.2