Commit 8cb4f6b3 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix previous commit

parent d4324d58
...@@ -906,14 +906,14 @@ nextresp2: ...@@ -906,14 +906,14 @@ nextresp2:
if ( id == 0 && msgid > LDAP_RES_UNSOLICITED ) { if ( id == 0 && msgid > LDAP_RES_UNSOLICITED ) {
int is_nod = 0; int is_nod = 0;
tag = ber_peek_tag( ber, &len ); tag = ber_peek_tag( &tmpber, &len );
/* we have a res oid */ /* we have a res oid */
if ( tag == LDAP_TAG_EXOP_RES_OID ) { if ( tag == LDAP_TAG_EXOP_RES_OID ) {
static struct berval bv_nod = BER_BVC( LDAP_NOTICE_OF_DISCONNECTION ); static struct berval bv_nod = BER_BVC( LDAP_NOTICE_OF_DISCONNECTION );
struct berval resoid = BER_BVNULL; struct berval resoid = BER_BVNULL;
if ( ber_scanf( ber, "m", &resoid ) == LBER_ERROR ) { if ( ber_scanf( &tmpber, "m", &resoid ) == LBER_ERROR ) {
ld->ld_errno = LDAP_DECODING_ERROR; ld->ld_errno = LDAP_DECODING_ERROR;
ber_free( ber, 1 ); ber_free( ber, 1 );
return -1; return -1;
...@@ -923,7 +923,7 @@ nextresp2: ...@@ -923,7 +923,7 @@ nextresp2:
is_nod = ber_bvcmp( &resoid, &bv_nod ) == 0; is_nod = ber_bvcmp( &resoid, &bv_nod ) == 0;
tag = ber_peek_tag( ber, &len ); tag = ber_peek_tag( &tmpber, &len );
} }
#if 0 /* don't need right now */ #if 0 /* don't need right now */
...@@ -931,7 +931,7 @@ nextresp2: ...@@ -931,7 +931,7 @@ nextresp2:
if ( tag == LDAP_TAG_EXOP_RES_VALUE ) { if ( tag == LDAP_TAG_EXOP_RES_VALUE ) {
struct berval resdata; struct berval resdata;
if ( ber_scanf( ber, "m", &resdata ) == LBER_ERROR ) { if ( ber_scanf( &tmpber, "m", &resdata ) == LBER_ERROR ) {
ld->ld_errno = LDAP_DECODING_ERROR; ld->ld_errno = LDAP_DECODING_ERROR;
ber_free( ber, 0 ); ber_free( ber, 0 );
return ld->ld_errno; return ld->ld_errno;
...@@ -962,7 +962,9 @@ nextresp2: ...@@ -962,7 +962,9 @@ nextresp2:
*lcp = NULL; *lcp = NULL;
} }
return LDAP_RES_EXTENDED; /* need to return -1, because otherwise
* a valid result is expected */
return -1;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment