version 1.58.2.6, 2008/02/11 23:24:12
|
version 1.59, 2005/01/01 19:49:44
|
Line 1
|
Line 1
|
/* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.58.2.5 2007/01/02 21:43:49 kurt Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.58 2004/09/04 02:54:29 kurt Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 1998-2008 The OpenLDAP Foundation. |
* Copyright 1998-2005 The OpenLDAP Foundation. |
* All rights reserved. |
* All rights reserved. |
* |
* |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
Line 294 ldap_parse_sasl_bind_result(
|
Line 294 ldap_parse_sasl_bind_result(
|
} |
} |
|
|
if ( ld->ld_version < LDAP_VERSION2 ) { |
if ( ld->ld_version < LDAP_VERSION2 ) { |
#ifdef LDAP_NULL_IS_NULL |
|
tag = ber_scanf( ber, "{iA}", |
|
&errcode, &ld->ld_error ); |
|
#else /* ! LDAP_NULL_IS_NULL */ |
|
tag = ber_scanf( ber, "{ia}", |
tag = ber_scanf( ber, "{ia}", |
&errcode, &ld->ld_error ); |
&errcode, &ld->ld_error ); |
#endif /* ! LDAP_NULL_IS_NULL */ |
|
|
|
if( tag == LBER_ERROR ) { |
if( tag == LBER_ERROR ) { |
ber_free( ber, 0 ); |
ber_free( ber, 0 ); |
Line 311 ldap_parse_sasl_bind_result(
|
Line 306 ldap_parse_sasl_bind_result(
|
} else { |
} else { |
ber_len_t len; |
ber_len_t len; |
|
|
#ifdef LDAP_NULL_IS_NULL |
tag = ber_scanf( ber, "{iaa" /*}*/, |
tag = ber_scanf( ber, "{eAA" /*}*/, |
|
&errcode, &ld->ld_matched, &ld->ld_error ); |
|
#else /* ! LDAP_NULL_IS_NULL */ |
|
tag = ber_scanf( ber, "{eaa" /*}*/, |
|
&errcode, &ld->ld_matched, &ld->ld_error ); |
&errcode, &ld->ld_matched, &ld->ld_error ); |
#endif /* ! LDAP_NULL_IS_NULL */ |
|
|
|
if( tag == LBER_ERROR ) { |
if( tag == LBER_ERROR ) { |
ber_free( ber, 0 ); |
ber_free( ber, 0 ); |