diff options
Diffstat (limited to 'src/testcurl/https/test_tls_extensions.c')
-rw-r--r-- | src/testcurl/https/test_tls_extensions.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/testcurl/https/test_tls_extensions.c b/src/testcurl/https/test_tls_extensions.c index f5095359..338fcd91 100644 --- a/src/testcurl/https/test_tls_extensions.c +++ b/src/testcurl/https/test_tls_extensions.c | |||
@@ -132,8 +132,7 @@ test_hello_extension (gnutls_session_t session, int port, extensions_t exten_t, | |||
132 | * len = ciphersuite data + 2 bytes ciphersuite length \ | 132 | * len = ciphersuite data + 2 bytes ciphersuite length \ |
133 | * 1 byte compression length + 1 byte compression data + \ | 133 | * 1 byte compression length + 1 byte compression data + \ |
134 | * 2 bytes extension length, extensions data | 134 | * 2 bytes extension length, extensions data |
135 | */ | 135 | */ciphersuite_len = MHD__gnutls_copy_ciphersuites (session, extdata, |
136 | ciphersuite_len = MHD__gnutls_copy_ciphersuites (session, extdata, | ||
137 | sizeof (extdata)); | 136 | sizeof (extdata)); |
138 | exten_data_len = ext_count * (2 + 2 + ext_length); | 137 | exten_data_len = ext_count * (2 + 2 + ext_length); |
139 | datalen += ciphersuite_len + 2 + 2 + exten_data_len; | 138 | datalen += ciphersuite_len + 2 + 2 + exten_data_len; |
@@ -259,7 +258,7 @@ main (int argc, char *const *argv) | |||
259 | { | 258 | { |
260 | const union MHD_DaemonInfo *dinfo; | 259 | const union MHD_DaemonInfo *dinfo; |
261 | dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); | 260 | dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); |
262 | if ((NULL == dinfo) ||(0 == dinfo->port) ) | 261 | if ((NULL == dinfo) || (0 == dinfo->port) ) |
263 | { | 262 | { |
264 | MHD_stop_daemon (d); return -1; | 263 | MHD_stop_daemon (d); return -1; |
265 | } | 264 | } |