From: Pierangelo Masarati Date: Mon, 8 Mar 2004 11:01:52 +0000 (+0000) Subject: declarations must occur before instructions X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~348 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d8467d48027e88555f5350667ee84d1790ba862;p=openldap declarations must occur before instructions --- diff --git a/servers/slapd/passwd.c b/servers/slapd/passwd.c index 3364b90acd..fde6514a41 100644 --- a/servers/slapd/passwd.c +++ b/servers/slapd/passwd.c @@ -47,10 +47,11 @@ int passwd_extop( Operation op2; slap_callback cb = { NULL, slap_null_cb, NULL, NULL }; slap_callback cb2 = { NULL, slap_replog_cb, NULL, NULL }; - cb2.sc_next = &cb; int i, nhash; char **hashes; + cb2.sc_next = &cb; + assert( ber_bvcmp( &slap_EXOP_MODIFY_PASSWD, &op->ore_reqoid ) == 0 ); if( op->o_dn.bv_len == 0 ) {