projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ccb17f
)
More debugging around session-state
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 13 Sep 2015 14:30:11 +0000
(10:30 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Sun, 13 Sep 2015 14:30:45 +0000
(10:30 -0400)
src/main/process.c
patch
|
blob
|
history
diff --git
a/src/main/process.c
b/src/main/process.c
index
74e31a8
..
c8ab39f
100644
(file)
--- a/
src/main/process.c
+++ b/
src/main/process.c
@@
-1443,6
+1443,13
@@
static void request_finish(REQUEST *request, int action)
* Don't print a reply if there's none to send.
*/
if (request->reply->code != 0) {
+ if (rad_debug_lvl && request->state &&
+ (request->reply->code == PW_CODE_ACCESS_ACCEPT)) {
+ if (!fr_pair_find_by_num(request->packet->vps, PW_STATE, 0, TAG_ANY)) {
+ RWDEBUG2("Unused attributes found in &session-state:");
+ }
+ }
+
debug_packet(request, request->reply, false);
request->listener->send(request->listener, request);
}