From 07e93b1ce35b3c93797b756a23ed1e3416626267 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 6 Mar 2003 20:08:00 +0000 Subject: [PATCH] Fix msgid bug --- 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 0d32aac0e0..aae6ce5aea 100644 --- a/libraries/libldap/kbind.c +++ b/libraries/libldap/kbind.c @@ -123,7 +123,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 */ } @@ -209,7 +209,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.2