~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build system: Fix check for <linux/if_tun.h> and remove our copy
[secnet]
/
md5.c
diff --git
a/md5.c
b/md5.c
index
2e0b9b8
..
6915891
100644
(file)
--- a/
md5.c
+++ b/
md5.c
@@
-129,7
+129,7
@@
MD5Final(md5byte digest[16], struct MD5Context *ctx)
byteSwap(ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
byteSwap(ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
- memset(ctx, 0, sizeof
(ctx)
); /* In case it's sensitive */
+ memset(ctx, 0, sizeof
*ctx
); /* In case it's sensitive */
}
#ifndef ASM_MD5
}
#ifndef ASM_MD5
@@
-241,7
+241,7
@@
static void *md5_init(void)
{
struct MD5Context *ctx;
{
struct MD5Context *ctx;
-
ctx=safe_malloc(sizeof(*ctx),"md5_init"
);
+
NEW(ctx
);
MD5Init(ctx);
return ctx;
MD5Init(ctx);
return ctx;
@@
-278,7
+278,7
@@
void md5_module(dict_t *dict)
uint8_t digest[16];
int i;
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;
st->cl.description="md5";
st->cl.type=CL_HASH;
st->cl.apply=NULL;