summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");