mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r7715: ensure we don't print null strings in ldap_errstr()
(This used to be commit dc419fc899
)
This commit is contained in:
parent
f40e69da26
commit
90cf33953d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user