1
0
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:
Andrew Tridgell 2005-06-18 09:01:51 +00:00 committed by Gerald (Jerry) Carter
parent f40e69da26
commit 90cf33953d

View File

@ -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);
}