From: markus Date: Mon, 5 May 2014 18:56:42 +0000 (+0000) Subject: ca_x509_serialize: don't leak the bio buffer; ok reyk@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6dee7b11aea398e94580db1d0c01779f5f574142;p=openbsd ca_x509_serialize: don't leak the bio buffer; ok reyk@ --- diff --git a/sbin/iked/ca.c b/sbin/iked/ca.c index d6076f561fc..cb20531c71b 100644 --- a/sbin/iked/ca.c +++ b/sbin/iked/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.28 2014/05/05 18:54:17 markus Exp $ */ +/* $OpenBSD: ca.c,v 1.29 2014/05/05 18:56:42 markus Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter @@ -784,6 +784,7 @@ ca_x509_serialize(X509 *x509) len = BIO_get_mem_data(out, &d); buf = ibuf_new(d, len); + BIO_free(out); return (buf); }