projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11d053d
)
get_certificate_serial(): Remove dead code
author
Fabian Keil
<fk@fabiankeil.de>
Fri, 28 Feb 2020 12:39:58 +0000
(13:39 +0100)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 1 Mar 2020 10:06:32 +0000
(11:06 +0100)
Fixes CID 267164 "Logically dead code".
Sponsored by: Robert Klemme
ssl.c
patch
|
blob
|
history
diff --git
a/ssl.c
b/ssl.c
index
55269dd
..
649b301
100644
(file)
--- 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--)
{