From 1fbd6f7d76446bd5ebb36943fc7b7f76d2c20a14 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 31 Jan 2007 03:42:47 +0000 Subject: ...but not when it's being used as a digest algorithm... --- src/crypto/crypto_null.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/crypto') diff --git a/src/crypto/crypto_null.c b/src/crypto/crypto_null.c index dda59ea5..9a2ea996 100644 --- a/src/crypto/crypto_null.c +++ b/src/crypto/crypto_null.c @@ -37,12 +37,14 @@ static int null_setkey ( void *ctx __unused, void *key __unused, static void null_encode ( void *ctx __unused, const void *src, void *dst, size_t len ) { - memcpy ( dst, src, len ); + if ( dst ) + memcpy ( dst, src, len ); } static void null_decode ( void *ctx __unused, const void *src, void *dst, size_t len ) { - memcpy ( dst, src, len ); + if ( dst ) + memcpy ( dst, src, len ); } static void null_final ( void *ctx __unused, void *out __unused ) { -- cgit v1.2.3-55-g7522