Commit d6a3dd51 authored by Sang Seok Lim's avatar Sang Seok Lim
Browse files

Bug fix

GSER/BER decoders: return code and memory leackage
parent fb2d226a
......@@ -17,7 +17,7 @@
topbuilddir = ../../../../build
topsrcdir = ../../..
snaccdir = /usr/local/snacc
snaccdir = /home/slim/snacc
LIBTOOL=$(topbuilddir)/libtool
OPT=-g -O2 -DLDAP_COMPONENT
......
......@@ -3,7 +3,7 @@
/*
* certificate.h
* "AuthenticationFramework" ASN.1 module encode/decode/extracting/matching/free C src.
* This file was generated by modified eSMACC compiler Tue Nov 23 23:28:16 2004
* This file was generated by modified eSMACC compiler Sun Dec 5 19:16:59 2004
* The generated files are strongly encouraged to be
* compiled as a module for OpenLDAP Software
*/
......
......@@ -1935,7 +1935,7 @@ BDecComponentVisibleString ( void* mem_op, GenBuf *b, AsnTag tagId, AsnLen len,
/*
* Routines for handling an ANY DEFINED Type
*/
void
int
SetAnyTypeByComponentOid ( ComponentAny *v, ComponentOid *id ) {
Hash hash;
void *anyInfo;
......@@ -1953,6 +1953,7 @@ SetAnyTypeByComponentOid ( ComponentAny *v, ComponentOid *id ) {
* Yet-to-be-Implemented
*/
}
return LDAP_SUCCESS;
}
void
......@@ -1980,6 +1981,8 @@ BDecComponentAny ( void* mem_op, GenBuf *b, ComponentAny *result, AsnLen *bytesD
ComponentAny *k, **k2;
k = (ComponentAny*) result;
if ( !k ) return (-1);
if ( mode & DEC_ALLOC_MODE_0 ) {
k2 = (ComponentAny**) result;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment