ITS#10231 slapadd: check for NULL suffix in error message

This commit is contained in:
Howard Chu 2024-06-18 17:14:12 +01:00
parent f1b921783b
commit aa31963e44

View file

@ -172,7 +172,8 @@ again:
"database #%d (%s) not configured to hold \"%s\"",
progname, erec->lineno,
dbnum,
be->be_suffix[0].bv_val,
( be->be_suffix && be->be_suffix[0].bv_val ) ?
be->be_suffix[0].bv_val : "(null)",
e->e_dn );
if ( bd ) {
BackendDB *bdtmp;