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
Nadezhda Ivanova
OpenLDAP
Commits
6a56886c
Commit
6a56886c
authored
May 20, 1999
by
Kurt Zeilenga
Browse files
etest/dtest now work correctly. Commented out bogus assert
in io.c.
parent
6762f1d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
libraries/liblber/dtest.c
View file @
6a56886c
...
...
@@ -90,14 +90,6 @@ main( int argc, char **argv )
}
}
if
((
tag
=
ber_get_next
(
sb
,
&
len
,
ber
)
)
==
LBER_ERROR
)
{
perror
(
"ber_get_next"
);
return
(
EXIT_FAILURE
);
}
printf
(
"decode: message tag 0x%lx and length %ld
\n
"
,
tag
,
len
);
ber_sockbuf_free
(
sb
);
return
(
EXIT_SUCCESS
);
}
libraries/liblber/io.c
View file @
6a56886c
...
...
@@ -443,7 +443,10 @@ ber_get_next( Sockbuf *sb, unsigned long *len, BerElement *ber )
*/
if
(
ber
->
ber_rwptr
==
NULL
)
{
assert
(
ber
->
ber_buf
==
NULL
);
/* XXYYZ
* dtest does like this assert.
*/
/* assert( ber->ber_buf == NULL ); */
ber
->
ber_rwptr
=
(
char
*
)
&
ber
->
ber_tag
;
ber
->
ber_tag
=
0
;
}
...
...
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