summaryrefslogtreecommitdiffstats
path: root/src/responder/common/responder_common.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-03-07 18:05:06 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-03-08 08:10:18 -0500
commitde9b723da178ab5022c02d88498c9c494aa75a87 (patch)
treeebb4c50e42c202785f3c1492065556a8aa3f4208 /src/responder/common/responder_common.c
parentca2939f9291a92b2e0339cd888cecae88d6a09f5 (diff)
downloadsssd-de9b723da178ab5022c02d88498c9c494aa75a87.tar.gz
sssd-de9b723da178ab5022c02d88498c9c494aa75a87.tar.xz
sssd-de9b723da178ab5022c02d88498c9c494aa75a87.zip
Use the correct hash table for pending requests
The function that handled pending requests on reconnect was checking an orphaned global variable that was never used, redenring the whole function uselsess. This fixes a very nasty bug that was causing requests for which we never received an answer for (for example because the backend failed and was restarted) to be never removed and therefore causing a black hole effect for any other request of the same type. Fixes: https://fedorahosted.org/sssd/ticket/1229
Diffstat (limited to 'src/responder/common/responder_common.c')
-rw-r--r--src/responder/common/responder_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/responder/common/responder_common.c b/src/responder/common/responder_common.c
index 94a9fdb63..b918bebb2 100644
--- a/src/responder/common/responder_common.c
+++ b/src/responder/common/responder_common.c
@@ -326,6 +326,7 @@ static int sss_dp_init(struct resp_ctx *rctx,
be_conn->cli_name = cli_name;
be_conn->domain = domain;
be_conn->intf = intf;
+ be_conn->rctx = rctx;
/* Set up SBUS connection to the monitor */
ret = dp_get_sbus_address(be_conn, &be_conn->sbus_address, domain->name);