X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/8f828e0ffdab1adb6f28fd705c5830ef8f7ac2b4..b7886fd46ab05c97b8a072e497903622bd1d5290:/md5.c diff --git a/md5.c b/md5.c index 343ad8f..6915891 100644 --- a/md5.c +++ b/md5.c @@ -241,7 +241,7 @@ static void *md5_init(void) { struct MD5Context *ctx; - ctx=safe_malloc(sizeof(*ctx),"md5_init"); + NEW(ctx); MD5Init(ctx); return ctx; @@ -278,7 +278,7 @@ void md5_module(dict_t *dict) uint8_t digest[16]; int i; - st=safe_malloc(sizeof(*st),"md5_module"); + NEW(st); st->cl.description="md5"; st->cl.type=CL_HASH; st->cl.apply=NULL;