summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2018-02-08 10:02:49 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2018-02-08 10:02:49 +0000
commit592143001cad8b4383b8502b27366a8f75fa66ed (patch)
treee5f7035f72275ce78055e1cfd5909011fc6d4d79 /lib
parent8ec37fbba0676bcb86646bb34a620981aae571eb (diff)
Do not bother NULLing pointers in a struct that is about to be freed.
Diffstat (limited to 'lib')
-rw-r--r--lib/libtls/tls_conninfo.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/libtls/tls_conninfo.c b/lib/libtls/tls_conninfo.c
index e3820988e82..685ed194e4e 100644
--- a/lib/libtls/tls_conninfo.c
+++ b/lib/libtls/tls_conninfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_conninfo.c,v 1.16 2017/08/27 01:39:26 beck Exp $ */
+/* $OpenBSD: tls_conninfo.c,v 1.17 2018/02/08 10:02:48 jsing Exp $ */
/*
* Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2015 Bob Beck <beck@openbsd.org>
@@ -276,24 +276,15 @@ tls_conninfo_free(struct tls_conninfo *conninfo)
return;
free(conninfo->alpn);
- conninfo->alpn = NULL;
free(conninfo->cipher);
- conninfo->cipher = NULL;
free(conninfo->servername);
- conninfo->servername = NULL;
free(conninfo->version);
- conninfo->version = NULL;
free(conninfo->hash);
- conninfo->hash = NULL;
free(conninfo->issuer);
- conninfo->issuer = NULL;
free(conninfo->subject);
- conninfo->subject = NULL;
free(conninfo->peer_cert);
- conninfo->peer_cert = NULL;
- conninfo->peer_cert_len = 0;
free(conninfo);
}