diff options
author | Pavel Březina <pbrezina@redhat.com> | 2016-06-03 14:17:59 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-06-27 16:33:26 +0200 |
commit | 12d99da163b1efef7e982f04e03049e012857bae (patch) | |
tree | 057f42b6b44bda5a467cf67594cd9dedcabc6766 /src/lib | |
parent | 2a45f13e3139063d3a5842119e7377c8c98aea1d (diff) | |
download | sssd-12d99da163b1efef7e982f04e03049e012857bae.tar.gz sssd-12d99da163b1efef7e982f04e03049e012857bae.tar.xz sssd-12d99da163b1efef7e982f04e03049e012857bae.zip |
sss_sifp: return context even on IO error
So the caller is able to get error description.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/sifp/sss_sifp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/sifp/sss_sifp.c b/src/lib/sifp/sss_sifp.c index 3528fc3bc..3dad40ff4 100644 --- a/src/lib/sifp/sss_sifp.c +++ b/src/lib/sifp/sss_sifp.c @@ -83,6 +83,8 @@ sss_sifp_init_ex(void *alloc_pvt, goto done; } + *_ctx = ctx; + dbus_error_init(ctx->io_error); conn = dbus_bus_get(DBUS_BUS_SYSTEM, &dbus_error); @@ -93,7 +95,6 @@ sss_sifp_init_ex(void *alloc_pvt, } ctx->conn = conn; - *_ctx = ctx; ret = SSS_SIFP_OK; |