From 0684060ec047b526636d8e330f18d093f058e59f Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 3 Jan 2020 19:16:13 +0100 Subject: [PATCH] coverty 226411 --- client/loclass/cipherutils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/loclass/cipherutils.c b/client/loclass/cipherutils.c index d291c4886..5f16b68fd 100644 --- a/client/loclass/cipherutils.c +++ b/client/loclass/cipherutils.c @@ -169,6 +169,9 @@ void printvar(const char *name, uint8_t *arr, int len) { } void printarr_human_readable(const char *title, uint8_t *arr, int len) { + + if (arr == NULL) return; + int cx = 0, i; size_t outsize = 100 + strlen(title) + len * 4; char *output = calloc(outsize, sizeof(char));