Commit 0423ec0b authored by Howard Chu's avatar Howard Chu
Browse files

Fix ITS#2335, RFC1798 sequence layout was wrong.

parent 387a7693
......@@ -1462,7 +1462,7 @@ connection_input(
return 1;
}
if (conn->c_protocol == LDAP_VERSION2) {
if (op->o_protocol == LDAP_VERSION2) {
rc = ber_printf(op->o_res_ber, "{is{" /*}}*/, op->o_msgid, "");
if (rc == -1) {
#ifdef NEW_LOGGING
......
......@@ -328,6 +328,12 @@ send_ldap_response(
rc = ber_printf( ber, /*"{"*/ "N}" );
}
#ifdef LDAP_CONNECTIONLESS
if( conn->c_is_udp && op->o_protocol == LDAP_VERSION2 && rc != -1 ) {
rc = ber_printf( ber, /*"{"*/ "N}" );
}
#endif
if ( rc == -1 ) {
#ifdef NEW_LOGGING
LDAP_LOG( OPERATION, ERR,
......@@ -1250,6 +1256,11 @@ slap_send_search_entry(
rc = send_ldap_controls( ber, ctrls );
}
#ifdef LDAP_CONNECTIONLESS
if( conn->c_is_udp && op->o_protocol == LDAP_VERSION2 ) {
; /* empty, skip following if */
} else
#endif
if( rc != -1 ) {
rc = ber_printf( ber, /*{*/ "N}" );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment