Commit
6baf7608dfc3517cb3798fc53db849f49c6d157a added a NULL check in
one place, but not everywhere āpā was dereferenced.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Shortcut for repl_meta_data. We asked for the data
* 'as-is', so stop processing here!
*/
- if (have_reveal_control && p->normalise == false && ac->inject == true) {
+ if (have_reveal_control && (p == NULL || !p->normalise) && ac->inject) {
return ldb_module_send_entry(ac->req, msg, ares->controls);
}
talloc_free(hex_string);
}
- if (p->normalise) {
+ if (p != NULL && p->normalise) {
ret = dsdb_fix_dn_rdncase(ldb, dn);
if (ret != LDB_SUCCESS) {
talloc_free(dsdb_dn);