sinnykumari / rpms / sssd

Forked from rpms/sssd 5 years ago
Clone

Blame 0009-Fix-segfault-in-AD-Subdomains-Module.patch

8445320
From 574061e65d3fb687b9cb2c757afa1fe92812245e Mon Sep 17 00:00:00 2001
8445320
From: Lukas Slebodnik <lslebodn@redhat.com>
8445320
Date: Wed, 15 May 2013 10:09:08 +0200
8445320
Subject: [PATCH] Fix segfault in AD Subdomains Module
8445320
8445320
In function ad_subdomains_get_netlogon_done:
8445320
If variable "reply_count" is zero then variable "reply" will not be
8445320
initialized. Therefore we should not continue.
8445320
---
8445320
 src/providers/ad/ad_subdomains.c | 2 ++
8445320
 1 file changed, 2 insertions(+)
8445320
8445320
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c
8445320
index 1da343f8711b2b99a7afff6a4a398a1aa515a875..2ad318f63a89b2e8894ca07d007cde11867ed290 100644
8445320
--- a/src/providers/ad/ad_subdomains.c
8445320
+++ b/src/providers/ad/ad_subdomains.c
8445320
@@ -307,6 +307,8 @@ static void ad_subdomains_get_netlogon_done(struct tevent_req *req)
8445320
 
8445320
     if (reply_count == 0) {
8445320
         DEBUG(SSSDBG_TRACE_FUNC, ("No netlogon data available.\n"));
8445320
+        ret = ENOENT;
8445320
+        goto done;
8445320
     } else if (reply_count > 1) {
8445320
         DEBUG(SSSDBG_OP_FAILURE,
8445320
               ("More than one netlogon info returned.\n"));
8445320
-- 
8445320
1.8.2.1
8445320