-/* $OpenBSD: radiusd.c,v 1.47 2024/07/13 13:06:47 yasuoka Exp $ */
+/* $OpenBSD: radiusd.c,v 1.48 2024/07/14 13:36:44 yasuoka Exp $ */
/*
* Copyright (c) 2013, 2023 Internet Initiative Japan Inc.
strlcpy(q->username, username, sizeof(q->username));
q->id = ++radius_query_id_seq;
+ q->radiusd = listn->radiusd;
q->clientaddrlen = peerlen;
memcpy(&q->clientaddr, peer, peerlen);
q->listen = listn;
radius_delete_packet(q->req);
if (q->res != NULL)
radius_delete_packet(q->res);
- TAILQ_REMOVE(&q->listen->radiusd->query, q, next);
+ TAILQ_REMOVE(&q->radiusd->query, q, next);
free(q);
}
-/* $OpenBSD: radiusd_local.h,v 1.12 2024/07/09 17:26:14 yasuoka Exp $ */
+/* $OpenBSD: radiusd_local.h,v 1.13 2024/07/14 13:36:44 yasuoka Exp $ */
/*
* Copyright (c) 2013 Internet Initiative Japan Inc.
struct radius_query {
u_int id;
+ struct radiusd *radiusd;
struct sockaddr_storage clientaddr;
int clientaddrlen;
int req_id;