From: Fabian Keil Date: Fri, 28 Feb 2020 12:39:58 +0000 (+0100) Subject: get_certificate_serial(): Remove dead code X-Git-Tag: v_3_0_29~457 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=5740519e561441eb4addaf571ffbf2e3da74c997;p=privoxy.git get_certificate_serial(): Remove dead code Fixes CID 267164 "Logically dead code". Sponsored by: Robert Klemme --- 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--) {