]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix _gnutls_write_new_general_name() result checking
authorMaks Naumov <maksqwe1@ukr.net>
Mon, 7 Jan 2019 22:05:23 +0000 (00:05 +0200)
committerMaks Naumov <maksqwe1@ukr.net>
Mon, 7 Jan 2019 22:05:23 +0000 (00:05 +0200)
lib/x509/x509_ext.c

index 8213c6e427cc7c3111cdf19053baeb988a8d38ae..ffc05bc0a333818463d2bb705b1f9305eaa274cb 100644 (file)
@@ -1052,7 +1052,7 @@ int gnutls_x509_ext_export_authority_key_id(gnutls_x509_aki_t aki,
                                                           san.data,
                                                           aki->cert_issuer.
                                                           names[i].san.size);
-                       if (result < 0) {
+                       if (ret < 0) {
                                gnutls_assert();
                                goto cleanup;
                        }