projects
/
freeradius.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
move assertion to top of function. Found by PVS-Studio
[freeradius.git]
/
src
/
main
/
process.c
diff --git
a/src/main/process.c
b/src/main/process.c
index
c3856c7
..
7b4196c
100644
(file)
--- a/
src/main/process.c
+++ b/
src/main/process.c
@@
-485,6
+485,8
@@
static struct timeval *request_response_window(REQUEST *request)
{
VERIFY_REQUEST(request);
+ rad_assert(request->home_server != NULL);
+
if (request->client) {
/*
* The client hasn't set the response window. Return
@@
-500,7
+502,6
@@
static struct timeval *request_response_window(REQUEST *request)
}
}
- rad_assert(request->home_server != NULL);
return &request->home_server->response_window;
}