--- libraries/libldap/sasl.c 2005/11/12 17:42:04 1.61 +++ libraries/libldap/sasl.c 2006/01/03 22:12:09 1.63 @@ -1,7 +1,7 @@ -/* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.60 2005/08/09 22:54:38 hallvard Exp $ */ +/* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.62 2005/12/13 19:11:26 ando Exp $ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2005 The OpenLDAP Foundation. + * Copyright 1998-2006 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -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 */ }