Browse Source

Coverity 12970 - Explicit null dereference

Description:
Introdced by commit a57494fcaffccb6fdd060a93ba605d432e38bc09.

https://fedorahosted.org/389/ticket/47462
Noriko Hosoi 11 years ago
parent
commit
64e237cb27
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/servers/slapd/daemon.c

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

@@ -1026,7 +1026,7 @@ convert_pbe_des_to_aes()
             /*
              * Loop over all the backends looking for the password attribute
              */
-            for(be_idx = 0; backends[be_idx]; be_idx++){
+            for(be_idx = 0; backends && backends[be_idx]; be_idx++){
                 pb = slapi_pblock_new();
                 slapi_search_internal_set_pb(pb, backends[be_idx],
                         LDAP_SCOPE_SUBTREE, filter, NULL, 0, NULL, NULL,