summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2007-06-19 07:49:47 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-06-19 07:49:47 +0000
commitd57110bc06d4340701475c6d73c2b7558d102fd5 (patch)
treecf7e4666ba82298530bac83323ae9998fa266280
parent48d4adff459d6419b8f5df6638d4d5dbcc6101fb (diff)
fixed memset bug
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@139 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 77f97d5..30d626d 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -2146,7 +2146,7 @@ void confclsrv_cb(FILE *f, char *block, char *opt, char *val) {
if (!srvconfs)
debugx(1, DBG_ERR, "malloc failed");
clsrvconf = srvconfs + srvconf_count - 1;
- memset(clsrvconf, 0, sizeof(struct server));
+ memset(clsrvconf, 0, sizeof(struct clsrvconf));
clsrvconf->servers = malloc(sizeof(struct server));
if (!clsrvconf->servers)
debugx(1, DBG_ERR, "malloc failed");