From 4c889ebf5d42ba8939e33c14a74b4552474587f4 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 2 Sep 2021 18:02:24 -0400 Subject: Call serverConfig() with NULLs for -o Always use insecure, and trust, clientCert, clientPriv are irrelevant for printing the remote certificate. --- bounce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bounce.c b/bounce.c index af7f510..ba5ec1d 100644 --- a/bounce.c +++ b/bounce.c @@ -290,7 +290,7 @@ int main(int argc, char *argv[]) { break; case 'k': clientPriv = optarg; break; case 'm': mode = optarg; break; case 'n': nick = optarg; - break; case 'o': insecure = true; printCert = true; + break; case 'o': printCert = true; break; case 'p': port = optarg; break; case 'q': quit = optarg; break; case 'r': real = optarg; @@ -359,7 +359,7 @@ int main(int argc, char *argv[]) { #endif if (printCert) { - serverConfig(insecure, trust, clientCert, clientPriv); + serverConfig(true, NULL, NULL, NULL); serverConnect(serverBindHost, host, port); serverPrintCert(); return EX_OK; -- cgit 1.4.1