Commit 8040719e authored by venaas's avatar venaas Committed by venaas
Browse files

dynamic allocation of client/server data

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@45 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 8b1a525a
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment