mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
don't dereference pointer in case of error
This commit is contained in:
parent
15c29b52fb
commit
49b1729ad7
1 changed files with 4 additions and 2 deletions
|
|
@ -280,8 +280,9 @@ bdb_monitor_initialize( void )
|
|||
Debug( LDAP_DEBUG_ANY, LDAP_XSTRING(bdb_monitor_initialize)
|
||||
": register_at failed\n",
|
||||
0, 0, 0 );
|
||||
} else {
|
||||
(*s_at[ i ].ad)->ad_type->sat_flags |= SLAP_AT_HIDE;
|
||||
}
|
||||
(*s_at[ i ].ad)->ad_type->sat_flags |= SLAP_AT_HIDE;
|
||||
}
|
||||
|
||||
for ( i = 0; s_oc[ i ].desc != NULL; i++ ) {
|
||||
|
|
@ -290,8 +291,9 @@ bdb_monitor_initialize( void )
|
|||
Debug( LDAP_DEBUG_ANY, LDAP_XSTRING(bdb_monitor_initialize)
|
||||
": register_oc failed\n",
|
||||
0, 0, 0 );
|
||||
} else {
|
||||
(*s_oc[ i ].oc)->soc_flags |= SLAP_OC_HIDE;
|
||||
}
|
||||
(*s_oc[ i ].oc)->soc_flags |= SLAP_OC_HIDE;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue