Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
ac39aa50
Commit
ac39aa50
authored
Dec 31, 2001
by
Howard Chu
Browse files
Tweak previous commit
parent
d8e70bd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblber/sockbuf.c
View file @
ac39aa50
...
...
@@ -821,12 +821,11 @@ sb_debug_read( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len )
ret
=
LBER_SBIOD_READ_NEXT
(
sbiod
,
buf
,
len
);
if
(
sbiod
->
sbiod_sb
->
sb_debug
&
LDAP_DEBUG_PACKETS
)
{
int
err
=
errno
;
if
(
ret
<
0
)
{
int
err
=
errno
;
ber_log_printf
(
LDAP_DEBUG_PACKETS
,
sbiod
->
sbiod_sb
->
sb_debug
,
"%sread: want=%ld error=%s
\n
"
,
(
char
*
)
sbiod
->
sbiod_pvt
,
(
long
)
len
,
STRERROR
(
errno
)
);
errno
=
err
;
}
else
{
ber_log_printf
(
LDAP_DEBUG_PACKETS
,
sbiod
->
sbiod_sb
->
sb_debug
,
"%sread: want=%ld, got=%ld
\n
"
,
(
char
*
)
sbiod
->
sbiod_pvt
,
...
...
@@ -834,6 +833,7 @@ sb_debug_read( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len )
ber_log_bprint
(
LDAP_DEBUG_PACKETS
,
sbiod
->
sbiod_sb
->
sb_debug
,
(
const
char
*
)
buf
,
ret
);
}
errno
=
err
;
}
return
ret
;
}
...
...
@@ -846,8 +846,8 @@ sb_debug_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len )
ret
=
LBER_SBIOD_WRITE_NEXT
(
sbiod
,
buf
,
len
);
if
(
sbiod
->
sbiod_sb
->
sb_debug
&
LDAP_DEBUG_PACKETS
)
{
int
err
=
errno
;
if
(
ret
<
0
)
{
int
err
=
errno
;
ber_log_printf
(
LDAP_DEBUG_PACKETS
,
sbiod
->
sbiod_sb
->
sb_debug
,
"%swrite: want=%ld error=%s
\n
"
,
(
char
*
)
sbiod
->
sbiod_pvt
,
(
long
)
len
,
...
...
@@ -860,6 +860,7 @@ sb_debug_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len )
ber_log_bprint
(
LDAP_DEBUG_PACKETS
,
sbiod
->
sbiod_sb
->
sb_debug
,
(
const
char
*
)
buf
,
ret
);
}
errno
=
err
;
}
return
ret
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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