Fix ITS#2335, RFC1798 sequence layout was wrong.

This commit is contained in:
Howard Chu 2003-02-28 13:04:16 +00:00
parent 387a76934b
commit 0423ec0bd6
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

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