projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c9dfd2
)
More assertions on free request
author
Alan T. DeKok
<aland@freeradius.org>
Tue, 10 Mar 2015 15:20:06 +0000
(11:20 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Tue, 10 Mar 2015 15:20:06 +0000
(11:20 -0400)
src/main/process.c
patch
|
blob
|
history
diff --git
a/src/main/process.c
b/src/main/process.c
index
2ec5a91
..
558ccd9
100644
(file)
--- a/
src/main/process.c
+++ b/
src/main/process.c
@@
-485,6
+485,10
@@
static void request_free(REQUEST *request)
{
void *ptr;
+ rad_assert(request->ev == NULL);
+ rad_assert(!request->in_request_hash);
+ rad_assert(!request->in_proxy_hash);
+
if ((request->options & RAD_REQUEST_OPTION_CTX) == 0) {
talloc_free(request);
return;
@@
-1756,6
+1760,10
@@
skip_dup:
} else {
RDEBUG("Not sending reply");
}
+
+ /*
+ * Don't do delayed reject. Oh well.
+ */
request_free(request);
return 1;
}