diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-02-05 05:57:27 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-02-05 05:57:27 +0000 |
commit | 3c9fc747fc2a06c1fde21168cf08c01f68cd08e7 (patch) | |
tree | 260bddbfee2a53683afb36442ba1cb30da8ca17e /plugins | |
parent | 24ff4b5308c28762100e32cfe0295d0fc9ddb508 (diff) | |
download | monitoring-plugins-3c9fc747fc2a06c1fde21168cf08c01f68cd08e7.tar.gz |
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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index daddfc19..dabe35ea 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -920,7 +920,7 @@ int connect_SSL (void) | |||
920 | { | 920 | { |
921 | SSL_METHOD *meth; | 921 | SSL_METHOD *meth; |
922 | 922 | ||
923 | asprintf (randbuff, "%s", "qwertyuiopasdfghjkl"); | 923 | asprintf (&randbuff, "%s", "qwertyuiopasdfghjkl"); |
924 | RAND_seed (randbuff, strlen (randbuff)); | 924 | RAND_seed (randbuff, strlen (randbuff)); |
925 | /* Initialize SSL context */ | 925 | /* Initialize SSL context */ |
926 | SSLeay_add_ssl_algorithms (); | 926 | SSLeay_add_ssl_algorithms (); |