summaryrefslogtreecommitdiff
path: root/lib/auth_cert.c
diff options
context:
space:
mode:
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;