summaryrefslogtreecommitdiff
path: root/usr.sbin/radiusd
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-02-14 02:44:59 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-02-14 02:44:59 +0000
commit6c94882010e0fdc4b9725127bf62bc0113697746 (patch)
tree6140539123a44c1bdd53205aa7194459384edc64 /usr.sbin/radiusd
parentbd304863b412d59f6b6691780f31e89e084bccef (diff)
avoid use after free of q
found by smatch, ok miod@ deraadt@
Diffstat (limited to 'usr.sbin/radiusd')
-rw-r--r--usr.sbin/radiusd/radiusd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/radiusd/radiusd.c b/usr.sbin/radiusd/radiusd.c
index 3fc7ad0e454..4419e309552 100644
--- a/usr.sbin/radiusd/radiusd.c
+++ b/usr.sbin/radiusd/radiusd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: radiusd.c,v 1.35 2024/02/09 07:46:32 yasuoka Exp $ */
+/* $OpenBSD: radiusd.c,v 1.36 2024/02/14 02:44:58 jsg Exp $ */
/*
* Copyright (c) 2013, 2023 Internet Initiative Japan Inc.
@@ -1286,6 +1286,7 @@ radiusd_module_imsg(struct radiusd_module *module, struct imsg *imsg)
log_warn("q=%u wrong pkt from module",
q->id);
radiusd_access_request_aborted(q);
+ break;
}
q->res = radpkt;
radiusd_access_request_answer(q);