From: Karl DeBisschop Date: Wed, 5 Feb 2003 05:57:27 +0000 (+0000) Subject: fix segfault due to bad asprintf invocation X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3c9fc747fc2a06c1fde21168cf08c01f68cd08e7;p=nagiosplug.git fix segfault due to bad asprintf invocation git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@289 f882894a-f735-0410-b71e-b25c423dba1c --- diff --git a/plugins/check_http.c b/plugins/check_http.c index daddfc1..dabe35e 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -920,7 +920,7 @@ int connect_SSL (void) { SSL_METHOD *meth; - asprintf (randbuff, "%s", "qwertyuiopasdfghjkl"); + asprintf (&randbuff, "%s", "qwertyuiopasdfghjkl"); RAND_seed (randbuff, strlen (randbuff)); /* Initialize SSL context */ SSLeay_add_ssl_algorithms ();