mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
remove dangling text pointer in case of success
This commit is contained in:
parent
eb0421c471
commit
143937320b
@ -583,6 +583,8 @@ slap_mods2entry(
|
||||
tail = &attr->a_next;
|
||||
}
|
||||
|
||||
*text = NULL;
|
||||
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -684,6 +684,8 @@ int structural_class(
|
||||
return LDAP_OBJECT_CLASS_VIOLATION;
|
||||
}
|
||||
|
||||
*text = NULL;
|
||||
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user