diff options
author | 2015-10-27 04:48:06 +0000 | |
---|---|---|
committer | 2015-10-27 04:48:06 +0000 | |
commit | c50650beff8b24ffa3396d57f42db2d1db485987 (patch) | |
tree | c11c7e9ad2dd0d2f03f9fec758d6e884acc04c3e | |
parent | The fd of the passwd database is marked close-on-exec now (diff) | |
download | wireguard-openbsd-c50650beff8b24ffa3396d57f42db2d1db485987.tar.xz wireguard-openbsd-c50650beff8b24ffa3396d57f42db2d1db485987.zip |
Free the received radius packet when it is duplicated.
diff from Yuuichi Someya
-rw-r--r-- | usr.sbin/radiusd/radiusd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/radiusd/radiusd.c b/usr.sbin/radiusd/radiusd.c index 6a85c0b8131..eea0ec49c6c 100644 --- a/usr.sbin/radiusd/radiusd.c +++ b/usr.sbin/radiusd/radiusd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radiusd.c,v 1.11 2015/10/27 04:27:01 yasuoka Exp $ */ +/* $OpenBSD: radiusd.c,v 1.12 2015/10/27 04:48:06 yasuoka Exp $ */ /* * Copyright (c) 2013 Internet Initiative Japan Inc. @@ -467,7 +467,7 @@ radiusd_listen_on_event(int fd, short evmask, void *ctx) radius_code_string(req_code), req_code, peerstr, req_id, q->id); /* XXX RFC 5080 suggests to answer the cached result */ - return; + goto on_error; } /* FIXME: we can support other request codes */ |