summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_ocsp.c
diff options
context:
space:
mode:
authorjsing <>2018-02-05 01:47:03 +0000
committerjsing <>2018-02-05 01:47:03 +0000
commitb38f09002132dbf35d77ee3e74c0a4f30c0cef7e (patch)
tree6b6fdf20976cb88b320d452019f282f87ea530d4 /src/lib/libtls/tls_ocsp.c
parentbc472499298f03ebe5c71920633cfa2b20046c93 (diff)
downloadopenbsd-b38f09002132dbf35d77ee3e74c0a4f30c0cef7e.tar.gz
openbsd-b38f09002132dbf35d77ee3e74c0a4f30c0cef7e.tar.bz2
openbsd-b38f09002132dbf35d77ee3e74c0a4f30c0cef7e.zip
Do not bother NULLing pointers in memory that is freed immediately after.
Diffstat (limited to 'src/lib/libtls/tls_ocsp.c')
-rw-r--r--src/lib/libtls/tls_ocsp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libtls/tls_ocsp.c b/src/lib/libtls/tls_ocsp.c
index 307ae842b8..17afb8e818 100644
--- a/src/lib/libtls/tls_ocsp.c
+++ b/src/lib/libtls/tls_ocsp.c
@@ -47,11 +47,9 @@ tls_ocsp_free(struct tls_ocsp *ocsp)
47 return; 47 return;
48 48
49 X509_free(ocsp->main_cert); 49 X509_free(ocsp->main_cert);
50 ocsp->main_cert = NULL;
51 free(ocsp->ocsp_result); 50 free(ocsp->ocsp_result);
52 ocsp->ocsp_result = NULL;
53 free(ocsp->ocsp_url); 51 free(ocsp->ocsp_url);
54 ocsp->ocsp_url = NULL; 52
55 free(ocsp); 53 free(ocsp);
56} 54}
57 55