]> git.sur5r.net Git - openldap/commitdiff
Bug fix: invalid return value
authorSang Seok Lim <slim@openldap.org>
Sat, 25 Dec 2004 06:44:29 +0000 (06:44 +0000)
committerSang Seok Lim <slim@openldap.org>
Sat, 25 Dec 2004 06:44:29 +0000 (06:44 +0000)
contrib/slapd-modules/comp_match/componentlib.c

index 751f33755489114ab2b5edd6b32f24208d7dd65f..2f435fc1fc2f456f25005ef7848962993ff74830 100644 (file)
@@ -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 */