From 9a789c8343a478b9c5fb28eb91f5f91f6819c46e Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 10 Feb 2018 04:48:17 +0000 Subject: Remove NULL check from tls_conninfo_cert_pem() - all of the other conninfo functions require the conninfo passed in to be non-NULL. --- src/lib/libtls/tls_conninfo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/libtls/tls_conninfo.c b/src/lib/libtls/tls_conninfo.c index 34535b5668..208d1e1062 100644 --- a/src/lib/libtls/tls_conninfo.c +++ b/src/lib/libtls/tls_conninfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_conninfo.c,v 1.18 2018/02/10 04:41:24 jsing Exp $ */ +/* $OpenBSD: tls_conninfo.c,v 1.19 2018/02/10 04:48:17 jsing Exp $ */ /* * Copyright (c) 2015 Joel Sing * Copyright (c) 2015 Bob Beck @@ -185,8 +185,6 @@ tls_conninfo_cert_pem(struct tls *ctx) BIO *membio = NULL; BUF_MEM *bptr = NULL; - if (ctx->conninfo == NULL) - goto err; if (ctx->ssl_peer_cert == NULL) return 0; if ((membio = BIO_new(BIO_s_mem()))== NULL) -- cgit v1.2.3-55-g6feb