X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/35d30aa38d4c9a2af028fd93adcebc6dba3a9a84..537ff1ad3e8786a6c1750b94f9147ea2533952b3:/transform-cbcmac.c diff --git a/transform-cbcmac.c b/transform-cbcmac.c index 02cbd4c..f748792 100644 --- a/transform-cbcmac.c +++ b/transform-cbcmac.c @@ -256,7 +256,7 @@ static list_t *transform_apply(closure_t *self, struct cloc loc, item_t *item; dict_t *dict; - st=safe_malloc(sizeof(*st),"serpent"); + NEW(st); st->cl.description="serpent-cbc256"; st->cl.type=CL_TRANSFORM; st->cl.apply=NULL; @@ -337,7 +337,7 @@ void transform_cbcmac_module(dict_t *dict) const char *errmsg; int i; - tr = safe_malloc(sizeof(struct transform),"test transform"); + NEW(tr); tr->max_seq_skew = 20; ti = transform_create(tr);