aboutsummaryrefslogtreecommitdiff
path: root/crypto.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-23 22:39:37 +0000
committerOmar Polo <op@omarpolo.com>2023-06-23 22:39:37 +0000
commit51340784148099697642da6252048a266f227d8e (patch)
tree542808c87c44830e0606cd6f9acdd3f395766627 /crypto.c
parent3d0204e7efce3ecaa2112b2c5aca0ab80691ab5a (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.c4
1 files 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;