From 1d2c568dfdb317055f330f4703923437d565ad3e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 31 Mar 2011 14:52:36 -0700 Subject: [PATCH] stream-ssl: Use out_of_memory() to abort due to lack of memory. This matches what xmalloc() does. It will be handled better by a monitor process (created with --monitor), which will restart the child instead of exiting. --- lib/stream-ssl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/stream-ssl.c b/lib/stream-ssl.c index 4874bbe4..977c5ba6 100644 --- a/lib/stream-ssl.c +++ b/lib/stream-ssl.c @@ -1044,8 +1044,7 @@ tmp_dh_callback(SSL *ssl OVS_UNUSED, int is_export OVS_UNUSED, int keylength) if (!dh->dh) { dh->dh = dh->constructor(); if (!dh->dh) { - ovs_fatal(ENOMEM, "out of memory constructing " - "Diffie-Hellman parameters"); + out_of_memory(); } } return dh->dh; -- 2.30.2