aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_https_sni.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/test_https_sni.c')
-rw-r--r--src/testcurl/https/test_https_sni.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testcurl/https/test_https_sni.c b/src/testcurl/https/test_https_sni.c
index 408d4c10..ed51697b 100644
--- a/src/testcurl/https/test_https_sni.c
+++ b/src/testcurl/https/test_https_sni.c
@@ -67,6 +67,8 @@ load_keys(const char *hostname,
67 struct Hosts *host; 67 struct Hosts *host;
68 68
69 host = malloc (sizeof (struct Hosts)); 69 host = malloc (sizeof (struct Hosts));
70 if (NULL == host)
71 abort ();
70 host->hostname = hostname; 72 host->hostname = hostname;
71 host->next = hosts; 73 host->next = hosts;
72 hosts = host; 74 hosts = host;
@@ -256,8 +258,8 @@ main (int argc, char *const *argv)
256 fprintf (stderr, "Error: %s\n", strerror (errno)); 258 fprintf (stderr, "Error: %s\n", strerror (errno));
257 return -1; 259 return -1;
258 } 260 }
259 load_keys ("host1", "host1.crt", "host1.key"); 261 load_keys ("host1", ABS_SRCDIR "/host1.crt", ABS_SRCDIR "/host1.key");
260 load_keys ("host2", "host2.crt", "host2.key"); 262 load_keys ("host2", ABS_SRCDIR "/host2.crt", ABS_SRCDIR "/host2.key");
261 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | MHD_USE_DEBUG, 263 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | MHD_USE_DEBUG,
262 4233, 264 4233,
263 NULL, NULL, 265 NULL, NULL,