From 1135d19f16340fa81ef8abb44c830c65c8dec6d3 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 16 May 2006 22:16:13 +0000 Subject: [PATCH] ITS#4466 fix typo, uninit'd var --- servers/slapd/slapi/slapi_pblock.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/servers/slapd/slapi/slapi_pblock.c b/servers/slapd/slapi/slapi_pblock.c index 7ced845876..ea6d4edcb2 100644 --- a/servers/slapd/slapi/slapi_pblock.c +++ b/servers/slapd/slapi/slapi_pblock.c @@ -624,7 +624,7 @@ pblock_get( Slapi_PBlock *pb, int param, void **value ) break; case SLAPI_MODIFY_MODS: { LDAPMod **mods = NULL; - Modifications *ml; + Modifications *ml = NULL; pblock_get_default( pb, param, (void **)&mods ); if ( mods == NULL && pb->pb_intop == 0 ) { @@ -635,12 +635,14 @@ pblock_get( Slapi_PBlock *pb, int param, void **value ) case LDAP_REQ_MODRDN: ml = pb->pb_op->orr_modlist; break; - defaulat: + default: rc = PBLOCK_ERROR; break; } - mods = slapi_int_modifications2ldapmods( ml ); - pblock_set_default( pb, param, (void *)mods ); + if ( rc != PBLOCK_ERROR ) { + mods = slapi_int_modifications2ldapmods( ml ); + pblock_set_default( pb, param, (void *)mods ); + } } *((LDAPMod ***)value) = mods; break; -- 2.39.5