From e79bb4330328d15def7341ccc29f72bea69d7ac6 Mon Sep 17 00:00:00 2001 From: inoguchi Date: Sun, 28 Jan 2018 09:21:34 +0000 Subject: [PATCH] Initialize variables to avoid compiler warnings ok jsing@ --- lib/libssl/ssl_srvr.c | 4 ++-- usr.bin/openssl/pkeyutl.c | 4 ++-- usr.bin/openssl/s_server.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libssl/ssl_srvr.c b/lib/libssl/ssl_srvr.c index 6450623d4a3..f1a0c9ae035 100644 --- a/lib/libssl/ssl_srvr.c +++ b/lib/libssl/ssl_srvr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_srvr.c,v 1.27 2018/01/27 15:30:05 jsing Exp $ */ +/* $OpenBSD: ssl_srvr.c,v 1.28 2018/01/28 09:21:34 inoguchi Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -175,7 +175,7 @@ ssl3_accept(SSL *s) unsigned long alg_k; int ret = -1; int new_state, state, skip = 0; - int listen; + int listen = 0; ERR_clear_error(); errno = 0; diff --git a/usr.bin/openssl/pkeyutl.c b/usr.bin/openssl/pkeyutl.c index 4752b4c79a2..dd52e93dfa4 100644 --- a/usr.bin/openssl/pkeyutl.c +++ b/usr.bin/openssl/pkeyutl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pkeyutl.c,v 1.11 2017/01/20 08:57:12 deraadt Exp $ */ +/* $OpenBSD: pkeyutl.c,v 1.12 2018/01/28 09:21:34 inoguchi Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -95,7 +95,7 @@ pkeyutl_main(int argc, char **argv) int keysize = -1; unsigned char *buf_in = NULL, *buf_out = NULL, *sig = NULL; - size_t buf_outlen; + size_t buf_outlen = 0; int buf_inlen = 0, siglen = -1; int ret = 1, rv = -1; diff --git a/usr.bin/openssl/s_server.c b/usr.bin/openssl/s_server.c index 7254109fba7..ccab5b32804 100644 --- a/usr.bin/openssl/s_server.c +++ b/usr.bin/openssl/s_server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_server.c,v 1.27 2017/08/12 21:04:33 jsing Exp $ */ +/* $OpenBSD: s_server.c,v 1.28 2018/01/28 09:21:34 inoguchi Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -404,7 +404,7 @@ cert_status_cb(SSL * s, void *arg) { tlsextstatusctx *srctx = arg; BIO *err = srctx->err; - char *host, *port, *path; + char *host = NULL, *port = NULL, *path = NULL; int use_ssl; unsigned char *rspder = NULL; int rspderlen; -- 2.20.1