mirror of
https://github.com/samba-team/samba.git
synced 2025-10-25 19:33:18 +03:00
r7715: ensure we don't print null strings in ldap_errstr()
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
6277c3923e
commit
dc419fc899
@@ -549,7 +549,9 @@ NTSTATUS ldap_check_response(struct ldap_connection *conn, struct ldap_Result *r
|
||||
}
|
||||
conn->last_error = talloc_asprintf(conn, "LDAP error %u - %s <%s> <%s>",
|
||||
r->resultcode,
|
||||
r->dn, r->errormessage, r->referral);
|
||||
r->dn?r->dn:"(NULL)",
|
||||
r->errormessage?r->errormessage:"",
|
||||
r->referral?r->referral:"");
|
||||
|
||||
return NT_STATUS_LDAP(r->resultcode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user