Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
80b5798d
Commit
80b5798d
authored
Jul 09, 1999
by
Kurt Zeilenga
Browse files
Fix tag/msgid bugs. Branch now passes 'cd tests/make ldbm' (which
doesn't say anything about referrals).
parent
317d6587
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/result.c
View file @
80b5798d
...
...
@@ -57,6 +57,14 @@ static ber_tag_t req2res( ber_tag_t tag )
case
LDAP_REQ_UNBIND
:
tag
=
LBER_SEQUENCE
;
break
;
case
LDAP_REQ_SEARCH
:
tag
=
LDAP_RES_SEARCH_RESULT
;
break
;
default:
assert
(
0
);
tag
=
LBER_ERROR
;
}
return
tag
;
}
...
...
@@ -119,7 +127,6 @@ long send_ldap_ber(
ldap_pvt_thread_mutex_unlock
(
&
conn
->
c_mutex
);
ldap_pvt_thread_mutex_unlock
(
&
conn
->
c_write_mutex
);
Debug
(
LDAP_DEBUG_TRACE
,
"<= send_ldap_ber
\n
"
,
0
,
0
,
0
);
return
bytes
;
}
...
...
@@ -143,6 +150,9 @@ send_ldap_response(
ber
=
ber_alloc_t
(
LBER_USE_DER
);
Debug
(
LDAP_DEBUG_TRACE
,
"send_ldap_response: tag=%ld msgid=%ld err=%ld
\n
"
,
(
long
)
tag
,
(
long
)
msgid
,
(
long
)
err
);
if
(
ber
==
NULL
)
{
Debug
(
LDAP_DEBUG_ANY
,
"ber_alloc failed
\n
"
,
0
,
0
,
0
);
return
;
...
...
@@ -286,6 +296,9 @@ send_ldap_result(
}
}
tag
=
req2res
(
op
->
o_tag
);
msgid
=
(
tag
!=
LBER_SEQUENCE
)
?
op
->
o_msgid
:
0
;
#ifdef LDAP_CONNECTIONLESS
if
(
op
->
o_cldap
)
{
ber_pvt_sb_udp_set_dst
(
&
conn
->
c_sb
,
&
op
->
o_clientaddr
);
...
...
@@ -349,6 +362,9 @@ send_search_result(
}
}
tag
=
req2res
(
op
->
o_tag
);
msgid
=
(
tag
!=
LBER_SEQUENCE
)
?
op
->
o_msgid
:
0
;
#ifdef LDAP_CONNECTIONLESS
if
(
op
->
o_cldap
)
{
ber_pvt_sb_udp_set_dst
(
&
conn
->
c_sb
,
&
op
->
o_clientaddr
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment