diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-23 22:39:37 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-23 22:39:37 +0000 |
commit | 51340784148099697642da6252048a266f227d8e (patch) | |
tree | 542808c87c44830e0606cd6f9acdd3f395766627 /crypto.c | |
parent | 3d0204e7efce3ecaa2112b2c5aca0ab80691ab5a (diff) |
macos' clang is retarded
thinks rsa and ecdsa may be used un-initialized... if we enter the
branch with fatalx().
sigh
Diffstat (limited to 'crypto.c')
-rw-r--r-- | crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |