summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2015-09-11 13:22:40 +0000
committerBob Beck <beck@cvs.openbsd.org>2015-09-11 13:22:40 +0000
commit97d2e2140973d0f19150fb246a3e179a62c785cb (patch)
treefabee949ba23738ebd257ca74c7c1e0d967a6a34
parentecef86312885d17ec86b952152f17a7059bcebf4 (diff)
!= -> == that I broke while bikeshedding
-rw-r--r--lib/libtls/tls_peer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtls/tls_peer.c b/lib/libtls/tls_peer.c
index 39a9d90cab7..cd1984f2153 100644
--- a/lib/libtls/tls_peer.c
+++ b/lib/libtls/tls_peer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_peer.c,v 1.2 2015/09/11 12:56:55 beck Exp $ */
+/* $OpenBSD: tls_peer.c,v 1.3 2015/09/11 13:22:39 beck Exp $ */
/*
* Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2015 Bob Beck <beck@openbsd.org>
@@ -108,7 +108,7 @@ tls_peer_cert_issuer(struct tls *ctx, char **issuer)
X509_NAME *name = NULL;
*issuer = NULL;
- if (ctx->ssl_peer_cert != NULL)
+ if (ctx->ssl_peer_cert == NULL)
return (-1);
if ((name = X509_get_issuer_name(ctx->ssl_peer_cert)) == NULL)
return (-1);