From 7b1f2d85b02ac5dbf8a447eaa05897d6d43b5c78 Mon Sep 17 00:00:00 2001 From: Sang Seok Lim Date: Sat, 25 Dec 2004 06:44:29 +0000 Subject: [PATCH] Bug fix: invalid return value --- contrib/slapd-modules/comp_match/componentlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.5