http://git.etherboot.org
/
people
/
dverkamp
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a502fcd
)
...but not when it's being used as a digest algorithm...
author
Michael Brown
<mcb30@etherboot.org>
Wed, 31 Jan 2007 03:42:47 +0000
(
03:42
+0000)
committer
Michael Brown
<mcb30@etherboot.org>
Wed, 31 Jan 2007 03:42:47 +0000
(
03:42
+0000)
src/crypto/crypto_null.c
patch
|
blob
|
history
diff --git
a/src/crypto/crypto_null.c
b/src/crypto/crypto_null.c
index
dda59ea
..
9a2ea99
100644
(file)
--- 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 ) {