summaryrefslogtreecommitdiff
path: root/lib/gnutls_kx.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-10-21 11:36:45 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-10-21 11:36:45 +0000
commitc523488f0f38b9eeb6106a429d0902b1837a5ea1 (patch)
treeac2854643d1c85c97f9172d1ef150fd47c19f2cd /lib/gnutls_kx.c
parent919fa2a0e6dece2d134eb12647e22cd186b70a85 (diff)
downloadgnutls-c523488f0f38b9eeb6106a429d0902b1837a5ea1.tar.gz
several cleanups
Diffstat (limited to 'lib/gnutls_kx.c')
-rw-r--r--lib/gnutls_kx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gnutls_kx.c b/lib/gnutls_kx.c
index 732e232658..cc41272698 100644
--- a/lib/gnutls_kx.c
+++ b/lib/gnutls_kx.c
@@ -502,9 +502,10 @@ int _gnutls_recv_client_certificate(SOCKET cd, GNUTLS_STATE state)
return 0;
}
/* certificate was required */
- if (optional==MANDATORY_PACKET)
+ if (optional==MANDATORY_PACKET) {
gnutls_send_alert( cd, state, GNUTLS_FATAL, GNUTLS_BAD_CERTIFICATE);
- gnutls_assert();
+ gnutls_assert();
+ }
return ret;
}