]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10231 slapadd: check for NULL suffix in error message
authorHoward Chu <hyc@openldap.org>
Tue, 18 Jun 2024 16:14:12 +0000 (17:14 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 28 Jun 2024 17:01:55 +0000 (17:01 +0000)
servers/slapd/slapadd.c

index de848b36ce731acfc473a043fec2e7292eda0cc8..e19398f820a3a5472b8cdbd214b9f863d1388370 100644 (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;