summaryrefslogtreecommitdiff
path: root/tests/dtls
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-10-31 21:35:49 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-10-31 21:35:49 +0100
commitf2aa1fa4bd35b22c3779a784b7c9f1d34054a9b5 (patch)
tree473c87cfe060eff5e739c9443f286bf4297deb64 /tests/dtls
parent70ef1bf40d850169fd459f806c9e37842bbccd72 (diff)
downloadgnutls-f2aa1fa4bd35b22c3779a784b7c9f1d34054a9b5.tar.gz
tests: dtls-stress: fix issues in the suite
Diffstat (limited to 'tests/dtls')
-rw-r--r--tests/dtls/dtls-stress.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/dtls/dtls-stress.c b/tests/dtls/dtls-stress.c
index ccc20f17ea..0a47e46789 100644
--- a/tests/dtls/dtls-stress.c
+++ b/tests/dtls/dtls-stress.c
@@ -443,7 +443,7 @@ unsigned rbuffer_size = 0;
static void filter_run_next(gnutls_transport_ptr_t fd,
const unsigned char *buffer, size_t len)
{
- int ret;
+ int ret = 0;
filter_fn fn = filter_chain[filter_current_idx];
filter_current_idx++;
if (fn) {
@@ -711,13 +711,13 @@ static void session_init(int sock, int server)
GNUTLS_CERT_REQUIRE);
}
} else if (server) {
- gnutls_anon_server_credentials_t cred;
- gnutls_anon_allocate_server_credentials(&cred);
- gnutls_credentials_set(session, GNUTLS_CRD_ANON, cred);
+ gnutls_anon_server_credentials_t acred;
+ gnutls_anon_allocate_server_credentials(&acred);
+ gnutls_credentials_set(session, GNUTLS_CRD_ANON, acred);
} else {
- gnutls_anon_client_credentials_t cred;
- gnutls_anon_allocate_client_credentials(&cred);
- gnutls_credentials_set(session, GNUTLS_CRD_ANON, cred);
+ gnutls_anon_client_credentials_t acred;
+ gnutls_anon_allocate_client_credentials(&acred);
+ gnutls_credentials_set(session, GNUTLS_CRD_ANON, acred);
}
gnutls_transport_set_push_function(session, writefn);