have authentication module. The code doesn't expect this.
-/* $OpenBSD: parse.y,v 1.15 2023/09/04 12:28:18 yasuoka Exp $ */
+/* $OpenBSD: parse.y,v 1.16 2023/09/05 00:32:01 yasuoka Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
} str_l optnl '{' authopts '}' {
struct radiusd_authentication *a;
+ if (authen.auth == NULL) {
+ free_str_l(&$3);
+ yyerror("no authentication module specified");
+ YYERROR;
+ }
if ((a = calloc(1,
sizeof(struct radiusd_authentication))) == NULL) {
free_str_l(&$3);
-/* $OpenBSD: radiusd.c,v 1.30 2023/09/04 23:55:23 yasuoka Exp $ */
+/* $OpenBSD: radiusd.c,v 1.31 2023/09/05 00:32:01 yasuoka Exp $ */
/*
* Copyright (c) 2013 Internet Initiative Japan Inc.
goto on_error;
}
found:
+ RADIUSD_ASSERT(authen->auth != NULL);
+
if (!MODULE_DO_USERPASS(authen->auth->module) &&
!MODULE_DO_ACCSREQ(authen->auth->module)) {
log_warnx("Received %s(code=%d) from %s id=%d "