summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2024-08-14 04:47:09 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2024-08-14 04:47:09 +0000
commit732f0c6a5a5fec99f6ecb68719024a90e397dca7 (patch)
tree90bd6d88f429f1256cdbc868fe4e6d5762b4c58d
parent9c5e71b255c3c8e9680adfd3dc9e86e44c0351e4 (diff)
Initialize dae objects properly.
-rw-r--r--usr.sbin/radiusd/radiusd_ipcp.c4
1 files changed, 3 insertions, 1 deletions
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]);