diff options
| author | jsing <> | 2018-02-05 01:47:03 +0000 |
|---|---|---|
| committer | jsing <> | 2018-02-05 01:47:03 +0000 |
| commit | eed7b47cd31e11f242f5c2e2d21582f1b4df0077 (patch) | |
| tree | 6b6fdf20976cb88b320d452019f282f87ea530d4 /src | |
| parent | 9adba429897718d956bddc3e4437eb4e4649fb0b (diff) | |
| download | openbsd-eed7b47cd31e11f242f5c2e2d21582f1b4df0077.tar.gz openbsd-eed7b47cd31e11f242f5c2e2d21582f1b4df0077.tar.bz2 openbsd-eed7b47cd31e11f242f5c2e2d21582f1b4df0077.zip | |
Do not bother NULLing pointers in memory that is freed immediately after.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libtls/tls_ocsp.c | 4 |
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 | ||
