diff options
author | 2018-02-10 04:48:17 +0000 | |
---|---|---|
committer | 2018-02-10 04:48:17 +0000 | |
commit | 5e81c42a44dbd5602d0ef83621929761d66a6e0e (patch) | |
tree | 670f1aa312abe5f7b1ddd9e9ec1921342318400a /lib/libtls/tls_conninfo.c | |
parent | Document functions for client-side TLS session support. (diff) | |
download | wireguard-openbsd-5e81c42a44dbd5602d0ef83621929761d66a6e0e.tar.xz wireguard-openbsd-5e81c42a44dbd5602d0ef83621929761d66a6e0e.zip |
Remove NULL check from tls_conninfo_cert_pem() - all of the other conninfo
functions require the conninfo passed in to be non-NULL.
Diffstat (limited to 'lib/libtls/tls_conninfo.c')
-rw-r--r-- | lib/libtls/tls_conninfo.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libtls/tls_conninfo.c b/lib/libtls/tls_conninfo.c index 34535b5668c..208d1e10626 100644 --- a/lib/libtls/tls_conninfo.c +++ b/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 <jsing@openbsd.org> * Copyright (c) 2015 Bob Beck <beck@openbsd.org> @@ -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) |