diff options
author | 2020-12-15 08:47:45 +0000 | |
---|---|---|
committer | 2020-12-15 08:47:45 +0000 | |
commit | 0431a4acb517d0e9bc5bb4dfd576ae7747e95590 (patch) | |
tree | d79f89d9bddf6e2adca053b25bb60cf0b01ddc53 | |
parent | Make synchronize-panes a pane option and add -U flag to set-option to (diff) | |
download | wireguard-openbsd-0431a4acb517d0e9bc5bb4dfd576ae7747e95590.tar.xz wireguard-openbsd-0431a4acb517d0e9bc5bb4dfd576ae7747e95590.zip |
Fix return value variable type in tls_keypair_load_cert
ERR_peek_error() returns unsigned long.
Reported by github issue by @rozhuk-im.
ok bcook@ jsing@
-rw-r--r-- | lib/libtls/tls_keypair.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtls/tls_keypair.c b/lib/libtls/tls_keypair.c index a98e5c2e7e4..78e9a08da01 100644 --- a/lib/libtls/tls_keypair.c +++ b/lib/libtls/tls_keypair.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_keypair.c,v 1.6 2018/04/07 16:35:34 jsing Exp $ */ +/* $OpenBSD: tls_keypair.c,v 1.7 2020/12/15 08:47:45 inoguchi Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -137,7 +137,7 @@ tls_keypair_load_cert(struct tls_keypair *keypair, struct tls_error *error, { char *errstr = "unknown"; BIO *cert_bio = NULL; - int ssl_err; + unsigned long ssl_err; int rv = -1; X509_free(*cert); |