From f88f09876e2018bd08e19d84ad1ab66f72cac8fd Mon Sep 17 00:00:00 2001 From: Ondrej Kos Date: Mon, 5 Aug 2013 16:34:33 +0200 Subject: DP: Notify propperly when removing PAC responder Adds pac_cli be_client structure pointer, to indetify and log the PAC responder termination correctly. --- src/providers/data_provider_be.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/providers/data_provider_be.c') diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index ae9ba81c..912b4191 100644 --- a/src/providers/data_provider_be.c +++ b/src/providers/data_provider_be.c @@ -2063,6 +2063,9 @@ static int be_client_destructor(void *ctx) } else if (becli->bectx->ssh_cli == becli) { DEBUG(SSSDBG_TRACE_FUNC, ("Removed SSH client\n")); becli->bectx->ssh_cli = NULL; + } else if (becli->bectx->pac_cli == becli) { + DEBUG(SSSDBG_TRACE_FUNC, ("Removed PAC client\n")); + becli->bectx->pac_cli = NULL; } else { DEBUG(SSSDBG_CRIT_FAILURE, ("Unknown client removed ...\n")); } @@ -2118,7 +2121,7 @@ static int client_registration(DBusMessage *message, } else if (strcasecmp(cli_name, "SSH") == 0) { becli->bectx->ssh_cli = becli; } else if (strcasecmp(cli_name, "PAC") == 0) { - /* no need to set becli */ + becli->bectx->pac_cli = becli; } else { DEBUG(1, ("Unknown client! [%s]\n", cli_name)); } -- cgit