From: Sang Seok Lim Date: Sat, 25 Dec 2004 06:44:29 +0000 (+0000) Subject: Bug fix: invalid return value X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7b1f2d85b02ac5dbf8a447eaa05897d6d43b5c78;p=openldap Bug fix: invalid return value --- diff --git a/contrib/slapd-modules/comp_match/componentlib.c b/contrib/slapd-modules/comp_match/componentlib.c index 751f337554..2f435fc1fc 100644 --- a/contrib/slapd-modules/comp_match/componentlib.c +++ b/contrib/slapd-modules/comp_match/componentlib.c @@ -2026,9 +2026,9 @@ RetrieveOidDecoderMappingbyOid( char* ch_oid, int oid_len ) { mem_op = comp_nibble_memory_allocator ( 128, 16 ); oid.octs = EncodeComponentOid ( mem_op, ch_oid, &oid_len); oid.octetLen = oid_len; - if( strLen <= 0 ) { + if( oid_len <= 0 ) { comp_nibble_memory_free( mem_op ); - return; + return NULL; } /* use encoded oid as hash string */