From ec63a1f87f10655069786f0f6500c81a2d6f18b6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 6 Mar 2003 14:50:39 +0000 Subject: [PATCH] Pass correct msgid to ldap_result --- libraries/libldap/kbind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ } -- 2.39.5