mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Bug fix: invalid return value
This commit is contained in:
parent
27c817217b
commit
7b1f2d85b0
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user