Browse Source

Bug 711906 - ns-slapd segfaults using suffix referrals

https://bugzilla.redhat.com/show_bug.cgi?id=711906
Resolves: bug 711906
Bug Description: ns-slapd segfaults using suffix referrals
Reviewed by: nkinder (Thanks!)
Branch: master
Fix Description: Check node->mtn_be for NULL before dereferencing it
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no
Rich Megginson 14 năm trước cách đây
mục cha
commit
fb9b444fc6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      ldap/servers/slapd/mapping_tree.c

+ 1 - 1
ldap/servers/slapd/mapping_tree.c

@@ -2905,7 +2905,7 @@ slapi_be_select( const Slapi_DN *sdn ) /* JCM - The name of this should change??
 {
     Slapi_Backend *be;
     mapping_tree_node *node= slapi_get_mapping_tree_node_by_dn(sdn);
-    if(node!=NULL)
+    if((node!=NULL) && (node->mtn_be!=NULL))
         be= node->mtn_be[0];
     else
         be = NULL;