mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Fix ITS#2335, RFC1798 sequence layout was wrong.
This commit is contained in:
parent
387a76934b
commit
0423ec0bd6
servers/slapd
@ -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}" );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user