mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-09 22:04:12 -05:00
safe_string_free was freeing the string value, so we have to save it.
This commit is contained in:
parent
7f357399cf
commit
06c5f96b49
1 changed files with 2 additions and 2 deletions
|
|
@ -295,7 +295,7 @@ ldap_objectclass2str( LDAP_OBJECT_CLASS * oc )
|
|||
print_whsp(ss);
|
||||
print_literal(ss,")");
|
||||
|
||||
retstring = safe_string_val(ss);
|
||||
retstring = strdup(safe_string_val(ss));
|
||||
safe_string_free(ss);
|
||||
return(retstring);
|
||||
}
|
||||
|
|
@ -394,7 +394,7 @@ ldap_attributetype2str( LDAP_ATTRIBUTE_TYPE * at )
|
|||
print_whsp(ss);
|
||||
print_literal(ss,")");
|
||||
|
||||
retstring = safe_string_val(ss);
|
||||
retstring = strdup(safe_string_val(ss));
|
||||
safe_string_free(ss);
|
||||
return(retstring);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue