mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-28 17:49:11 -04:00
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
This commit is contained in:
parent
24ff4b5308
commit
3c9fc747fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Reference in a new issue