summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2007-01-26 10:52:47 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-01-26 10:52:47 +0000
commit8b1a525a4580f35bd0e0fd81781298ff2756b8ea (patch)
tree23f6db59dc63c382e4aac316d0676f4c00dcab27
parenta883fe9f6f02d02c0a917ff30ee403f1ab355391 (diff)
dynamic allocation of client/server data
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@44 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-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;