mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
s3-tldap: Fix dead code in tldap_sasl_bind_send().
dn can't be NULL cause it is set to "" in that case. Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
This commit is contained in:
committed by
Günther Deschner
parent
7937a6afcb
commit
7f8c8d80ef
@ -817,7 +817,7 @@ struct tevent_req *tldap_sasl_bind_send(TALLOC_CTX *mem_ctx,
|
||||
|
||||
asn1_push_tag(state->out, TLDAP_REQ_BIND);
|
||||
asn1_write_Integer(state->out, ld->ld_version);
|
||||
asn1_write_OctetString(state->out, dn, (dn != NULL) ? strlen(dn) : 0);
|
||||
asn1_write_OctetString(state->out, dn, strlen(dn));
|
||||
|
||||
if (mechanism == NULL) {
|
||||
asn1_push_tag(state->out, ASN1_CONTEXT_SIMPLE(0));
|
||||
|
Reference in New Issue
Block a user