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:
Hallvard Furuseth 2005-07-11 19:09:30 +00:00
parent 62b653fa85
commit d5685734d2

View File

@ -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;
}