summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2007-01-26 14:23:25 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-01-26 14:23:25 +0000
commit8040719e3686b862ffac2717dab587ae566552bf (patch)
treeeea6c22c976aa739e690299986bd9566f938ce6d
parent8b1a525a4580f35bd0e0fd81781298ff2756b8ea (diff)
dynamic allocation of client/server data
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@45 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--radsecproxy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 243c2a4..db89b6a 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -1725,7 +1725,7 @@ void getconfig(const char *serverfile, const char *clientfile) {
}
rewind(f);
- for (i = 0; i < count && fgets(line, 1024, f); i++) {
+ for (i = 0; i < count && fgets(line, 1024, f);) {
if (serverfile) {
server = &servers[i];
peer = &server->peer;
@@ -1801,6 +1801,7 @@ void getconfig(const char *serverfile, const char *clientfile) {
printf(" %s", *r);
printf("\n");
}
+ i++;
}
fclose(f);
}