Blame SOURCES/0003-CACHE_REQ-Fix-hybrid-lookup-log-spamming.patch

c29843
From 49eb871847a94311bbd2190a315230e4bae1ea2c Mon Sep 17 00:00:00 2001
c29843
From: Justin Stephenson <jstephen@redhat.com>
c29843
Date: Mon, 1 Aug 2022 09:54:51 -0400
c29843
Subject: [PATCH] CACHE_REQ: Fix hybrid lookup log spamming
c29843
MIME-Version: 1.0
c29843
Content-Type: text/plain; charset=UTF-8
c29843
Content-Transfer-Encoding: 8bit
c29843
c29843
Skip calling cache_req_data_set_hybrid_lookup() when hybrid data
c29843
is NULL for certain NSS request types (e.g. Service by Name).
c29843
c29843
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
c29843
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
c29843
(cherry picked from commit 96a1dce8096d45e986ab01aaac11d8c77c36d1d7)
c29843
---
c29843
 src/responder/nss/nss_get_object.c | 4 +++-
c29843
 1 file changed, 3 insertions(+), 1 deletion(-)
c29843
c29843
diff --git a/src/responder/nss/nss_get_object.c b/src/responder/nss/nss_get_object.c
c29843
index 9762d6bfe..5a2e7e9bd 100644
c29843
--- a/src/responder/nss/nss_get_object.c
c29843
+++ b/src/responder/nss/nss_get_object.c
c29843
@@ -171,7 +171,9 @@ hybrid_domain_retry_data(TALLOC_CTX *mem_ctx,
c29843
                                           input_name);
c29843
     }
c29843
 
c29843
-    cache_req_data_set_hybrid_lookup(hybrid_data, true);
c29843
+    if (hybrid_data != NULL) {
c29843
+        cache_req_data_set_hybrid_lookup(hybrid_data, true);
c29843
+    }
c29843
 
c29843
     return hybrid_data;
c29843
 }
c29843
-- 
c29843
2.37.1
c29843