summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-10-10 17:57:43 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-10-13 13:32:26 -0400
commit90a83f3c7b49e689d47553a5aa0eb15751846963 (patch)
treee656143dbd6c6a77cf445eb212e71749c637ca71
parent83ac515cf3b9d278f8df3bbd08d6ae53b5666120 (diff)
downloadsssd-90a83f3c7b49e689d47553a5aa0eb15751846963.tar.gz
sssd-90a83f3c7b49e689d47553a5aa0eb15751846963.tar.xz
sssd-90a83f3c7b49e689d47553a5aa0eb15751846963.zip
Check if dp_requests hash table exists before using it
-rw-r--r--src/responder/common/responder_dp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/responder/common/responder_dp.c b/src/responder/common/responder_dp.c
index a89425c43..11986f06e 100644
--- a/src/responder/common/responder_dp.c
+++ b/src/responder/common/responder_dp.c
@@ -114,6 +114,11 @@ void handle_requests_after_reconnect(void)
unsigned long count, i;
struct sss_dp_req *sdp_req;
+ if (!dp_requests) {
+ DEBUG(7, ("No requests to handle after reconnect\n"));
+ return;
+ }
+
ret = hash_values(dp_requests, &count, &values);
if (ret != HASH_SUCCESS) {
DEBUG(1, ("hash_values failed, "