diff --git a/source/libcli/util/asn1.c b/source/libcli/util/asn1.c index 81ce72bed97..477887b96a6 100644 --- a/source/libcli/util/asn1.c +++ b/source/libcli/util/asn1.c @@ -24,7 +24,7 @@ /* allocate an asn1 structure */ struct asn1_data *asn1_init(TALLOC_CTX *mem_ctx) { - struct asn1_data *ret = talloc_zero(NULL, struct asn1_data); + struct asn1_data *ret = talloc_zero(mem_ctx, struct asn1_data); if (ret == NULL) { DEBUG(0,("asn1_init failed! out of memory\n")); }