Skip to content
Snippets Groups Projects
Commit b70b48c4 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

don't dereference pointer in case of error

parent 9ef77c8a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment