mirror of
https://github.com/samba-team/samba.git
synced 2025-11-20 08:23:50 +03:00
r7565: fixed handling of sasl data in ldap server
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
853b8cd72d
commit
9b7a89735f
@@ -223,7 +223,8 @@ static BOOL ldapsrv_write_buf(struct ldapsrv_connection *conn)
|
||||
if (!conn->session_info) {
|
||||
return write_from_buf(sock, &conn->out_buffer);
|
||||
}
|
||||
if (!(gensec_have_feature(conn->gensec, GENSEC_FEATURE_SIGN) ||
|
||||
if (conn->sasl_out_buffer.length == 0 &&
|
||||
!(gensec_have_feature(conn->gensec, GENSEC_FEATURE_SIGN) ||
|
||||
gensec_have_feature(conn->gensec, GENSEC_FEATURE_SEAL))) {
|
||||
return write_from_buf(sock, &conn->out_buffer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user