summaryrefslogtreecommitdiffstats
path: root/lib/utils_base.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils_base.c')
-rw-r--r--lib/utils_base.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/utils_base.c b/lib/utils_base.c
index 176fa850..0f521263 100644
--- a/lib/utils_base.c
+++ b/lib/utils_base.c
@@ -407,11 +407,7 @@ char *_np_state_generate_key() {
407 char keyname[41]; 407 char keyname[41];
408 char *p=NULL; 408 char *p=NULL;
409 409
410 unsigned char *result = malloc(256 * sizeof(unsigned char)); 410 unsigned char result[256];
411
412 if (result == NULL) {
413 die(STATE_UNKNOWN, _("Failed to allocate memory for hashes: %s"), strerror(errno));
414 }
415 411
416#ifdef USE_OPENSSL 412#ifdef USE_OPENSSL
417 /* 413 /*