summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Cachereul <f.cachereul@alphalink.fr>2014-10-29 09:30:42 +0100
committerDmitry Kozlov <xeb@mail.ru>2014-10-29 12:10:43 +0300
commitebdc1835312701b50c402159c48ed5d643619bec (patch)
treef0d75513df5fa16945968503c1b09dd15076dabc
parent7dec83c831f6965570898c13a20746ef062d2bf6 (diff)
downloadaccel-ppp-ebdc1835312701b50c402159c48ed5d643619bec.tar.gz
accel-ppp-ebdc1835312701b50c402159c48ed5d643619bec.zip
radius: fix call to memset on rdp->auth_ctx
The mistake was revealed by gcc 4.9.0 Signed-off-by: François Cachereul <f.cachereul@alphalink.fr> Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
-rw-r--r--accel-pppd/radius/radius.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c
index 045dee8..ac65959 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;