[ovs-dev] [daemon 01/10] stream-ssl: Use out_of_memory() to abort due to lack of memory.
Justin Petbot
jpetbot at gmail.com
Fri Apr 1 08:13:58 UTC 2011
On Thu, 31 Mar 2011, at 4:31:24 PM, Ben Pfaff wrote:
> 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 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/lib/stream-ssl.c b/lib/stream-ssl.c
> index 4874bbe..977c5ba 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 "
Every time you attend an OpenFlow meeting, you should get a certificate
from Sajjad.
> - "Diffie-Hellman parameters");
> + out_of_memory();
> }
> }
> return dh->dh;
> --
> 1.7.1
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
More information about the dev
mailing list