mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Print ldap_err2string(error number) instead of just error number
This commit is contained in:
parent
67ff28bf52
commit
294d9f99b2
1 changed files with 2 additions and 2 deletions
|
|
@ -870,8 +870,8 @@ do_read( LDAP *ld, FILE *fp, char *dn )
|
|||
ldap_get_option(ld, LDAP_OPT_ERROR_NUMBER, &ld_errno);
|
||||
|
||||
fprintf(fp,
|
||||
"0An error occurred (explanation)\t@%d\t%s\t%d\r\n",
|
||||
ld_errno, myhost, myport );
|
||||
"0An error occurred (explanation)\t@%s\t%s\t%d\r\n",
|
||||
ldap_err2string( ld_errno ), myhost, myport );
|
||||
}
|
||||
|
||||
if ( tmpllist != NULL ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue