aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-11-22 03:11:24 +0100
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-11-22 03:11:24 +0100
commita74e1503752e310fbfc8dda142c5803eff86dc88 (patch)
treed924bd67852cef38a4b9f4216d231cbbdb3f13e2
parente9d1c7ba005dda68148651119234b0ab076302d1 (diff)
downloadlibbrandt-a74e1503752e310fbfc8dda142c5803eff86dc88.tar.gz
libbrandt-a74e1503752e310fbfc8dda142c5803eff86dc88.zip
abort() on OOM
-rw-r--r--crypto.c4
1 files 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)
467 weprintf ("could not init point in 2 dimensional array. " 467 weprintf ("could not init point in 2 dimensional array. "
468 "out of memory?"); 468 "out of memory?");
469 smc_free2 (ret, size1, size2); 469 smc_free2 (ret, size1, size2);
470 return NULL; 470 GNUNET_assert (0);
471 } 471 }
472 } 472 }
473 } 473 }
@@ -530,7 +530,7 @@ smc_init3 (uint16_t size1, uint16_t size2, uint16_t size3)
530 weprintf ("could not init point in 2 dimensional array. " 530 weprintf ("could not init point in 2 dimensional array. "
531 "out of memory?"); 531 "out of memory?");
532 smc_free3 (ret, size1, size2, size3); 532 smc_free3 (ret, size1, size2, size3);
533 return NULL; 533 GNUNET_assert (0);
534 } 534 }
535 } 535 }
536 } 536 }