mirror of https://gerrit.osmocom.org/asn1c
oops, allocating invalid amount of memory.
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@608 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
8ac58635e7
commit
5192595cae
|
@ -100,7 +100,7 @@ ANY_new_fromType(asn_TYPE_descriptor_t *td, void *sptr) {
|
|||
|
||||
if(ANY_fromType(&tmp, td, sptr)) return 0;
|
||||
|
||||
st = (ANY_t *)CALLOC(1, sizeof(ANY_t *));
|
||||
st = (ANY_t *)CALLOC(1, sizeof(ANY_t));
|
||||
if(st) {
|
||||
*st = tmp;
|
||||
return st;
|
||||
|
|
Loading…
Reference in New Issue