summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 29a6ede..243c2a4 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -1725,7 +1725,7 @@ void getconfig(const char *serverfile, const char *clientfile) {
}
rewind(f);
- for (i = 0; fgets(line, 1024, f) && i < count; i++) {
+ for (i = 0; i < count && fgets(line, 1024, f); i++) {
if (serverfile) {
server = &servers[i];
peer = &server->peer;