summaryrefslogtreecommitdiff
path: root/lib/auth_cert.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2004-02-27 18:04:00 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2004-02-27 18:04:00 +0000
commit5933c7f051596a700c787dff74c53bd58ba33a0a (patch)
tree2d16a3892325a9ca7d565fca75cc22c135bf997e /lib/auth_cert.c
parent474452ef9abb0d58f72406d83e0230d5e5e3c390 (diff)
downloadgnutls-5933c7f051596a700c787dff74c53bd58ba33a0a.tar.gz
patch to fix the bug in mutual certificate authentication in SSL 3.0
Diffstat (limited to 'lib/auth_cert.c')
-rw-r--r--lib/auth_cert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/auth_cert.c b/lib/auth_cert.c
index de770cc358..f35bfaeeef 100644
--- a/lib/auth_cert.c
+++ b/lib/auth_cert.c
@@ -242,7 +242,7 @@ uint size;
if (gnutls_certificate_type_get(session) != GNUTLS_CRT_X509)
return 0;
- do {
+ if (data_size > 0) do {
/* This works like DECR_LEN()
*/
result = GNUTLS_E_UNEXPECTED_PACKET_LENGTH;