From: Ben Pfaff Date: Thu, 31 Mar 2011 21:52:36 +0000 (-0700) Subject: stream-ssl: Use out_of_memory() to abort due to lack of memory. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d2c568dfdb317055f330f4703923437d565ad3e;p=openvswitch 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. --- 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;