From 32ed937691abd1e4e53523f395a533eb4b455fe5 Mon Sep 17 00:00:00 2001 From: yasuoka Date: Wed, 14 Aug 2024 04:47:08 +0000 Subject: [PATCH] Initialize dae objects properly. --- usr.sbin/radiusd/radiusd_ipcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/radiusd/radiusd_ipcp.c b/usr.sbin/radiusd/radiusd_ipcp.c index 407af6d6c86..3410aa41217 100644 --- a/usr.sbin/radiusd/radiusd_ipcp.c +++ b/usr.sbin/radiusd/radiusd_ipcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radiusd_ipcp.c,v 1.8 2024/08/01 00:58:14 yasuoka Exp $ */ +/* $OpenBSD: radiusd_ipcp.c,v 1.9 2024/08/14 04:47:08 yasuoka Exp $ */ /* * Copyright (c) 2024 Internet Initiative Japan Inc. @@ -485,6 +485,8 @@ ipcp_config_set(void *ctx, const char *name, int argc, char * const * argv) } } } else if (strcmp(name, "dae") == 0) { + memset(&dae, 0, sizeof(dae)); + dae.sock = -1; if (!(argc >= 1 || strcmp(argv[1], "server") == 0)) { module_send_message(module->base, IMSG_NG, "`%s' is unknown", argv[1]); -- 2.20.1