mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Cleanup sss result string
This commit is contained in:
parent
dc86747a4d
commit
3f39c79411
@ -1941,8 +1941,8 @@ print_sss( LDAP *ld, LDAPControl *ctrl )
|
||||
rc = ldap_parse_sortresponse_control( ld, ctrl, &err, &attr );
|
||||
if ( rc == LDAP_SUCCESS ) {
|
||||
char buf[ BUFSIZ ];
|
||||
rc = snprintf( buf, sizeof(buf), "(%d) %s %s",
|
||||
err, ldap_err2string(err), attr ? attr : "" );
|
||||
rc = snprintf( buf, sizeof(buf), "(%d) %s%s%s",
|
||||
err, ldap_err2string(err), attr ? " " : "", attr ? attr : "" );
|
||||
|
||||
tool_write_ldif( ldif ? LDIF_PUT_COMMENT : LDIF_PUT_VALUE,
|
||||
"sortResult", buf, rc );
|
||||
|
Loading…
Reference in New Issue
Block a user