Skip to content

Commit

Permalink
Invalid DN check
Browse files Browse the repository at this point in the history
  • Loading branch information
droideck committed Oct 25, 2023
1 parent 91d1df6 commit 426f0d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ldap/servers/slapd/entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,14 +834,15 @@ str2entry_dupcheck(const char *rawdn, const char *s, int flags, int read_statein
csnset_free(&valuecsnset);
}

slapi_log_err(SLAPI_LOG_ERR, "str2entry_dupcheck", "Test message\n");
if (rawdn) {
if (NULL == slapi_entry_get_dn_const(e)) {
if (flags & SLAPI_STR2ENTRY_DN_NORMALIZED) {
normdn = slapi_ch_strdup(rawdn);
} else {
normdn = slapi_create_dn_string("%s", rawdn);
if (NULL == normdn) {
slapi_log_err(SLAPI_LOG_TRACE, "str2entry_dupcheck",
slapi_log_err(SLAPI_LOG_ERR, "str2entry_dupcheck",
"Invalid DN: %s\n", (char *)rawdn);
slapi_entry_free(e);
if (freeval)
Expand Down

0 comments on commit 426f0d2

Please sign in to comment.