]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Corrections in the TLS layer openpgp certificate packet parser.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 3 May 2003 09:01:58 +0000 (09:01 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 3 May 2003 09:01:58 +0000 (09:01 +0000)
lib/auth_cert.c

index 981d59d90cc0c9bb1795e95eaf5e3e287d3dc0fc..dfa0484f7a02ea30d9391d2de62b8956dd37d635 100644 (file)
@@ -883,7 +883,7 @@ int _gnutls_proc_openpgp_server_certificate(gnutls_session session,
                len = _gnutls_read_uint24(p);
                p += 3;
 
-               if (size == 0) {
+               if (len == 0) {
                        gnutls_assert();
                        /* no certificate was sent */
                        return GNUTLS_E_NO_CERTIFICATE_FOUND;