From 51340784148099697642da6252048a266f227d8e Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Fri, 23 Jun 2023 22:39:37 +0000 Subject: [PATCH] macos' clang is retarded thinks rsa and ecdsa may be used un-initialized... if we enter the branch with fatalx(). sigh --- crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto.c b/crypto.c index a932764..dd4ead3 100644 --- a/crypto.c +++ b/crypto.c @@ -113,8 +113,8 @@ static int crypto_dispatch_server(int fd, struct privsep_proc *p, struct imsg *imsg) { struct privsep *ps = p->p_ps; - RSA *rsa; - EC_KEY *ecdsa; + RSA *rsa = NULL; + EC_KEY *ecdsa = NULL; EVP_PKEY *pkey; struct imsg_crypto_req req; struct imsg_crypto_res res;