Code

fix segfault due to bad asprintf invocation
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>
Wed, 5 Feb 2003 05:57:27 +0000 (05:57 +0000)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>
Wed, 5 Feb 2003 05:57:27 +0000 (05:57 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@289 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_http.c

index daddfc1993212ffa173c206fa92875c649df598a..dabe35eab8c2452cf02ac105ec69bccabde861e2 100644 (file)
@@ -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 ();