From 8040719e3686b862ffac2717dab587ae566552bf Mon Sep 17 00:00:00 2001 From: venaas Date: Fri, 26 Jan 2007 14:23:25 +0000 Subject: dynamic allocation of client/server data git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@45 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.1