diff options
author | djm <djm> | 2007-09-17 06:11:01 +0000 |
---|---|---|
committer | djm <djm> | 2007-09-17 06:11:01 +0000 |
commit | b7125327cc2928ed528fa5105915c1837e9165ef (patch) | |
tree | 4035f6e0064b5ea3a259612fcfb7b6a7b651ca2e /umac.c | |
parent | c1c4b43f8908ef7ccea04daff238c1e64bc2855a (diff) | |
download | openssh-b7125327cc2928ed528fa5105915c1837e9165ef.tar.gz |
- stevesk@cvs.openbsd.org 2007/09/12 19:39:19
[umac.c]
use xmalloc() and xfree(); ok markus@ pvalchev@
Diffstat (limited to 'umac.c')
-rw-r--r-- | umac.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: umac.c,v 1.1 2007/06/07 19:37:34 pvalchev Exp $ */ +/* $OpenBSD: umac.c,v 1.2 2007/09/12 19:39:19 stevesk Exp $ */ /* ----------------------------------------------------------------------- * * umac.c -- C Implementation UMAC Message Authentication @@ -66,6 +66,7 @@ #include "includes.h" #include <sys/types.h> +#include "xmalloc.h" #include "umac.h" #include <string.h> #include <stdlib.h> @@ -1196,7 +1197,7 @@ int umac_delete(struct umac_ctx *ctx) if (ctx) { if (ALLOC_BOUNDARY) ctx = (struct umac_ctx *)ctx->free_ptr; - free(ctx); + xfree(ctx); } return (1); } @@ -1212,7 +1213,7 @@ struct umac_ctx *umac_new(u_char key[]) size_t bytes_to_add; aes_int_key prf_key; - octx = ctx = malloc(sizeof(*ctx) + ALLOC_BOUNDARY); + octx = ctx = xmalloc(sizeof(*ctx) + ALLOC_BOUNDARY); if (ctx) { if (ALLOC_BOUNDARY) { bytes_to_add = ALLOC_BOUNDARY - |