summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'radsecproxy.c')
-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);
}