From: Howard Chu Date: Thu, 6 Mar 2003 14:50:39 +0000 (+0000) Subject: Pass correct msgid to ldap_result X-Git-Tag: NO_SLAP_OP_BLOCKS~169 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ec63a1f87f10655069786f0f6500c81a2d6f18b6;p=openldap Pass correct msgid to ldap_result --- diff --git a/libraries/libldap/kbind.c b/libraries/libldap/kbind.c index 3229622c41..587eb48a47 100644 --- a/libraries/libldap/kbind.c +++ b/libraries/libldap/kbind.c @@ -125,7 +125,7 @@ ldap_kerberos_bind1_s( LDAP *ld, LDAP_CONST char *dn ) return( ld->ld_errno ); /* wait for a result */ - if ( ldap_result( ld, ld->ld_msgid, 1, (struct timeval *) 0, &res ) + if ( ldap_result( ld, msgid, 1, (struct timeval *) 0, &res ) == -1 ) { return( ld->ld_errno ); /* ldap_result sets ld_errno */ } @@ -212,7 +212,7 @@ ldap_kerberos_bind2_s( LDAP *ld, LDAP_CONST char *dn ) return( ld->ld_errno ); /* wait for a result */ - if ( ldap_result( ld, ld->ld_msgid, 1, (struct timeval *) 0, &res ) + if ( ldap_result( ld, msgid, 1, (struct timeval *) 0, &res ) == -1 ) { return( ld->ld_errno ); /* ldap_result sets ld_errno */ }