From a74e1503752e310fbfc8dda142c5803eff86dc88 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Tue, 22 Nov 2016 03:11:24 +0100 Subject: [PATCH] abort() on OOM --- crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto.c b/crypto.c index 3e4991d..e870f2b 100644 --- a/crypto.c +++ b/crypto.c @@ -467,7 +467,7 @@ smc_init2 (uint16_t size1, uint16_t size2) weprintf ("could not init point in 2 dimensional array. " "out of memory?"); smc_free2 (ret, size1, size2); - return NULL; + GNUNET_assert (0); } } } @@ -530,7 +530,7 @@ smc_init3 (uint16_t size1, uint16_t size2, uint16_t size3) weprintf ("could not init point in 2 dimensional array. " "out of memory?"); smc_free3 (ret, size1, size2, size3); - return NULL; + GNUNET_assert (0); } } }