|
@@ -37,12 +37,14 @@ static int null_setkey ( void *ctx __unused, void *key __unused,
|
37
|
37
|
|
38
|
38
|
static void null_encode ( void *ctx __unused, const void *src,
|
39
|
39
|
void *dst, size_t len ) {
|
40
|
|
- memcpy ( dst, src, len );
|
|
40
|
+ if ( dst )
|
|
41
|
+ memcpy ( dst, src, len );
|
41
|
42
|
}
|
42
|
43
|
|
43
|
44
|
static void null_decode ( void *ctx __unused, const void *src,
|
44
|
45
|
void *dst, size_t len ) {
|
45
|
|
- memcpy ( dst, src, len );
|
|
46
|
+ if ( dst )
|
|
47
|
+ memcpy ( dst, src, len );
|
46
|
48
|
}
|
47
|
49
|
|
48
|
50
|
static void null_final ( void *ctx __unused, void *out __unused ) {
|