]> 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)
committerRichard Russon <rich@flatcap.org>
Fri, 3 Mar 2017 01:35:28 +0000 (01:35 +0000)
mutt_ssl.c

index 53a0eb184751b55d1034cd70d3c1a04341bda34f..43ba5fe9d3c07d45d4b84bc904174b085b05e4ff 100644 (file)
@@ -886,6 +886,7 @@ static int check_host (X509 *x509cert, const char *hostname, char *err, size_t e
        }
       }
     }
+    GENERAL_NAMES_free(subj_alt_names);
   }
 
   if (!match_found)