macos' clang is retarded

thinks rsa and ecdsa may be used un-initialized... if we enter the
branch with fatalx().

sigh
This commit is contained in:
Omar Polo 2023-06-23 22:39:37 +00:00
parent 3d0204e7ef
commit 5134078414
1 changed files with 2 additions and 2 deletions

View File

@ -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;