jcs's openbsd hax
openbsd

avoid uninitialised variable use found with smatch, ok tb@

jsg 30b4cc53 215cefe5

+2 -2
+2 -2
sbin/iked/ca.c
··· 1 - /* $OpenBSD: ca.c,v 1.104 2025/09/04 10:55:19 yasuoka Exp $ */ 1 + /* $OpenBSD: ca.c,v 1.105 2025/09/08 10:18:23 jsg Exp $ */ 2 2 3 3 /* 4 4 * Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org> ··· 1881 1881 const char *errstr = "failed"; 1882 1882 X509_NAME *subj; 1883 1883 char *subj_name; 1884 - int depth; 1884 + int depth = -1; 1885 1885 1886 1886 if (issuerp) 1887 1887 *issuerp = NULL;