]> granicus.if.org Git - neomutt/commitdiff
SSL: Fix memory leak in subject alternative name code. (closes #3920)
authorMatthias Andree <matthias.andree@gmx.de>
Thu, 2 Mar 2017 23:53:27 +0000 (15:53 -0800)
committerMatthias Andree <matthias.andree@gmx.de>
Thu, 2 Mar 2017 23:53:27 +0000 (15:53 -0800)
mutt_ssl.c

index 457ea091c0a16c3b7a28011b63d82308d4274f45..ca42bba268418a1447f2098b735e5618d3311347 100644 (file)
@@ -873,6 +873,7 @@ static int check_host (X509 *x509cert, const char *hostname, char *err, size_t e
        }
       }
     }
+    GENERAL_NAMES_free(subj_alt_names);
   }
 
   if (!match_found)