diff --git a/client/loclass/cipherutils.c b/client/loclass/cipherutils.c index b50268697..c2a802c7a 100644 --- a/client/loclass/cipherutils.c +++ b/client/loclass/cipherutils.c @@ -150,6 +150,8 @@ void reverse_arraycopy(uint8_t *arr, uint8_t *dest, size_t len) { } void printarr(const char *name, uint8_t *arr, int len) { + if (name == NULL || arr == NULL) return; + int cx, i; size_t outsize = 40 + strlen(name) + len * 5; char *output = calloc(outsize, sizeof(char));