mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
Fixed bug in dtest code.
This commit is contained in:
parent
e27ba3f0ee
commit
d42e658fcb
2 changed files with 2 additions and 1 deletions
|
|
@ -81,6 +81,7 @@ main( int argc, char **argv )
|
|||
fmt[1] = '\0';
|
||||
|
||||
printf("decode: format %s\n", fmt );
|
||||
len = sizeof(buf);
|
||||
rc = ber_scanf( ber, fmt, &buf[0], &len );
|
||||
|
||||
if( rc == LBER_ERROR ) {
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ ber_get_next( Sockbuf *sb, unsigned long *len, BerElement *ber )
|
|||
*/
|
||||
|
||||
if (ber->ber_rwptr == NULL) {
|
||||
assert( ber->ber_buf == NULL );
|
||||
/* assert( ber->ber_buf == NULL ); */
|
||||
ber->ber_rwptr = (char *) &ber->ber_tag;
|
||||
ber->ber_tag = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue