From 2b0f40eaba44742fa38bb5b67ada510e7b2b6324 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 31 Jul 2009 09:52:14 -0400 Subject: Remove redundant memory contexts Simplify code by removing stuff that is never used or redundant. --- server/responder/pam/pamsrv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/responder/pam/pamsrv.c') diff --git a/server/responder/pam/pamsrv.c b/server/responder/pam/pamsrv.c index ef01e9729..05e3a12d6 100644 --- a/server/responder/pam/pamsrv.c +++ b/server/responder/pam/pamsrv.c @@ -148,8 +148,8 @@ static void pam_dp_reconnect_init(struct sbus_conn_ctx *sconn, int status, void /* Did we reconnect successfully? */ if (status == SBUS_RECONNECT_SUCCESS) { /* Add the methods back to the new connection */ - ret = sbus_conn_add_method_ctx(rctx->dp_ctx->scon_ctx, - rctx->dp_ctx->sm_ctx); + ret = sbus_conn_add_method_ctx(rctx->conn_ctx, + rctx->sm_ctx); if (ret != EOK) { DEBUG(0, ("Could not re-add methods on reconnection.\n")); pam_shutdown(rctx); @@ -190,7 +190,7 @@ static int pam_process_init(struct main_context *main_ctx, return ret; } - sbus_reconnect_init(rctx->dp_ctx->scon_ctx, max_retries, + sbus_reconnect_init(rctx->conn_ctx, max_retries, pam_dp_reconnect_init, rctx); return EOK; -- cgit