stream-ssl: Use out_of_memory() to abort due to lack of memory.
authorBen Pfaff <blp@nicira.com>
Thu, 31 Mar 2011 21:52:36 +0000 (14:52 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 4 Apr 2011 17:58:54 +0000 (10:58 -0700)
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

index 4874bbe482a79b9bc1b80b7ee7d7595bc8e74f26..977c5ba61cf2c940ea45ea8a62493baed9885cdb 100644 (file)
@@ -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;