projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d56fd8c
)
Simplify free_certificate_chain()
author
Fabian Keil
<fk@fabiankeil.de>
Thu, 14 May 2020 11:51:52 +0000
(13:51 +0200)
committer
Fabian Keil
<fk@fabiankeil.de>
Sat, 16 May 2020 09:10:49 +0000
(11:10 +0200)
Sponsored by: Robert Klemme
ssl.c
patch
|
blob
|
history
diff --git
a/ssl.c
b/ssl.c
index
32b51ad
..
0512275
100644
(file)
--- a/
ssl.c
+++ b/
ssl.c
@@
-2172,14
+2172,11
@@
static void free_certificate_chain(struct client_state *csp)
csp->server_certs_chain.next = NULL;
/* Freeing memory in whole linked list */
-
if
(cert != NULL)
+
while
(cert != NULL)
{
- do
- {
- struct certs_chain *cert_for_free = cert;
- cert = cert->next;
- freez(cert_for_free);
- } while (cert != NULL);
+ struct certs_chain *cert_for_free = cert;
+ cert = cert->next;
+ freez(cert_for_free);
}
}