-/* $OpenBSD: ca.c,v 1.79 2021/11/21 22:44:08 tobhe Exp $ */
+/* $OpenBSD: ca.c,v 1.80 2021/11/25 18:28:51 tobhe Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
{
struct iked *env = ps->ps_env;
struct ca_store *store = env->sc_priv;
- struct iked_id *id;
+ struct iked_id *id = NULL;
const char *name;
if (store == NULL)
-/* $OpenBSD: config.c,v 1.83 2021/11/24 20:48:00 tobhe Exp $ */
+/* $OpenBSD: config.c,v 1.84 2021/11/25 18:28:51 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
config_getsocket(struct iked *env, struct imsg *imsg,
void (*cb)(int, short, void *))
{
- struct iked_socket *sock, **sock0, **sock1;
+ struct iked_socket *sock, **sock0 = NULL, **sock1 = NULL;
log_debug("%s: received socket fd %d", __func__, imsg->fd);
-/* $OpenBSD: iked.c,v 1.58 2021/09/01 15:30:06 tobhe Exp $ */
+/* $OpenBSD: iked.c,v 1.59 2021/11/25 18:28:51 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
/* FALLTHROUGH */
case SIGCHLD:
do {
- int len;
+ int len = 0;
pid = waitpid(-1, &status, WNOHANG);
if (pid <= 0)