From ebdc1835312701b50c402159c48ed5d643619bec Mon Sep 17 00:00:00 2001 From: François Cachereul Date: Wed, 29 Oct 2014 09:30:42 +0100 Subject: radius: fix call to memset on rdp->auth_ctx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The mistake was revealed by gcc 4.9.0 Signed-off-by: François Cachereul Signed-off-by: Guillaume Nault Signed-off-by: Dmitry Kozlov --- accel-pppd/radius/radius.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c index 045dee8a..ac659597 100644 --- a/accel-pppd/radius/radius.c +++ b/accel-pppd/radius/radius.c @@ -183,7 +183,7 @@ static int rad_pwdb_check(struct pwdb_t *pwdb, struct ap_session *ses, pwdb_call } rpd->auth_ctx = mempool_alloc(auth_ctx_pool); - memset(rpd->auth_ctx, 0, sizeof(rpd->auth_ctx)); + memset(rpd->auth_ctx, 0, sizeof(*rpd->auth_ctx)); rpd->auth_ctx->cb = cb; rpd->auth_ctx->cb_arg = cb_arg; -- cgit v1.2.3