diff options
author | François Cachereul <f.cachereul@alphalink.fr> | 2014-10-29 09:30:42 +0100 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-10-29 12:10:43 +0300 |
commit | ebdc1835312701b50c402159c48ed5d643619bec (patch) | |
tree | f0d75513df5fa16945968503c1b09dd15076dabc /accel-pppd | |
parent | 7dec83c831f6965570898c13a20746ef062d2bf6 (diff) | |
download | accel-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>
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/radius/radius.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |