diff options
Diffstat (limited to 'source4/ldap_server')
-rw-r--r-- | source4/ldap_server/ldap_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index 7319c1c7ac..9f62d72e2c 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -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); } |