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 committed by Quanah Gibson-Mount
parent 5cd67e374e
commit 8350e24c8f

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;