From ed4cdc8b759d433880c12ba1b57efd5d1cec0830 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 10 Oct 2019 13:11:29 +0200 Subject: [PATCH] coverity 226411 --- client/loclass/cipherutils.c | 2 ++ 1 file changed, 2 insertions(+) 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));