dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0196-IPA-set-EINVAL-if-dn-can-t-be-linearized.patch

b725e7
From 424f26892d1b2587a806694820babf5754b8db66 Mon Sep 17 00:00:00 2001
b725e7
From: Pavel Reichl <preichl@redhat.com>
b725e7
Date: Thu, 19 Mar 2015 10:21:21 -0400
b725e7
Subject: [PATCH 196/196] IPA: set EINVAL if dn can't be linearized
b725e7
b725e7
Reviewed-by: Sumit Bose <sbose@redhat.com>
b725e7
(cherry picked from commit 131da4d9f40e0e407d7bcae18ff16507976bc6c7)
b725e7
---
b725e7
 src/providers/ipa/ipa_s2n_exop.c | 1 +
b725e7
 1 file changed, 1 insertion(+)
b725e7
b725e7
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c
b725e7
index 7e2b70b953075d33df10ea614c55ce5d25f49b9b..292f174257fbf6f6ebc8db6d1eb38cb4b5349b81 100644
b725e7
--- a/src/providers/ipa/ipa_s2n_exop.c
b725e7
+++ b/src/providers/ipa/ipa_s2n_exop.c
b725e7
@@ -1284,6 +1284,7 @@ static errno_t process_members(struct sss_domain_info *domain,
b725e7
                 dn_str = ldb_dn_get_linearized(msg->dn);
b725e7
                 if (dn_str == NULL) {
b725e7
                     DEBUG(SSSDBG_OP_FAILURE, "ldb_dn_get_linearized failed.\n");
b725e7
+                    ret = EINVAL;
b725e7
                     goto done;
b725e7
                 }
b725e7
 
b725e7
-- 
b725e7
2.1.0
b725e7