mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
retcode_op_func(): Fix uninitialized variable 'ref':
Under rs->sr_err == LDAP_REFERRAL, return LDAP_OTHER "bad referral object" if both rdi->rdi_ref and default_referral are NULL.
This commit is contained in:
parent
62b653fa85
commit
d5685734d2
@ -1,5 +1,5 @@
|
||||
/* retcode.c - customizable response for client testing purposes */
|
||||
/* $Header$ */
|
||||
/* $OpenLDAP$ */
|
||||
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
||||
*
|
||||
* Copyright 2005 The OpenLDAP Foundation.
|
||||
@ -360,8 +360,7 @@ retcode_op_func( Operation *op, SlapReply *rs )
|
||||
|
||||
if ( rdi->rdi_ref != NULL ) {
|
||||
ref = rdi->rdi_ref;
|
||||
|
||||
} else if ( default_referral != NULL ) {
|
||||
} else {
|
||||
ref = default_referral;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user