--- libraries/libldap/sasl.c 2005/11/14 18:06:06 1.58.2.3 +++ libraries/libldap/sasl.c 2005/12/13 19:11:26 1.62 @@ -1,4 +1,4 @@ -/* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.58.2.2 2005/08/10 21:57:17 kurt Exp $ */ +/* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.61 2005/11/12 17:42:04 ando Exp $ */ /* This work is part of OpenLDAP Software . * * Copyright 1998-2005 The OpenLDAP Foundation. @@ -196,7 +196,7 @@ ldap_sasl_bind_s( } #endif - if ( ldap_result( ld, msgid, 1, NULL, &result ) == -1 ) { + if ( ldap_result( ld, msgid, LDAP_MSG_ALL, NULL, &result ) == -1 ) { return( ld->ld_errno ); /* ldap_result sets ld_errno */ }