diff options
author | Sumit Bose <sbose@redhat.com> | 2009-06-23 14:57:41 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-07-02 08:59:48 -0400 |
commit | 6dc2131ab0a5225decdcdb8fff8706a340d9ed3b (patch) | |
tree | 4fa5d1c73199081dca916f0883df0200b29e62a9 /server/responder | |
parent | db89f7616f3595aa2900a55039ee3b4e994eb6dc (diff) | |
download | sssd-6dc2131ab0a5225decdcdb8fff8706a340d9ed3b.tar.gz sssd-6dc2131ab0a5225decdcdb8fff8706a340d9ed3b.tar.bz2 sssd-6dc2131ab0a5225decdcdb8fff8706a340d9ed3b.zip |
check pending_return after dbus_connection_send_with_reply
Diffstat (limited to 'server/responder')
-rw-r--r-- | server/responder/common/responder_dp.c | 2 | ||||
-rw-r--r-- | server/responder/pam/pamsrv_dp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/responder/common/responder_dp.c b/server/responder/common/responder_dp.c index 83f89a54..bfc533b9 100644 --- a/server/responder/common/responder_dp.c +++ b/server/responder/common/responder_dp.c @@ -272,7 +272,7 @@ int nss_dp_send_acct_req(struct resp_ctx *rctx, TALLOC_CTX *memctx, ret = dbus_connection_send_with_reply(conn, msg, &pending_reply, 600000 /* TODO: set timeout */); - if (!ret) { + if (!ret || pending_reply == NULL) { /* * Critical Failure * We can't communicate on this connection diff --git a/server/responder/pam/pamsrv_dp.c b/server/responder/pam/pamsrv_dp.c index fadb284a..1de43478 100644 --- a/server/responder/pam/pamsrv_dp.c +++ b/server/responder/pam/pamsrv_dp.c @@ -119,7 +119,7 @@ int pam_dp_send_req(struct pam_auth_req *preq, int timeout) } ret = dbus_connection_send_with_reply(conn, msg, &pending_reply, timeout); - if (!ret) { + if (!ret || pending_reply == NULL) { /* * Critical Failure * We can't communicate on this connection |