From 320a7ecd4614e9e06ac6e8eb7ec519a77382dc90 Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Tue, 5 Jun 2001 06:51:06 +0000 Subject: Bad niklas, re-committed redundant code. --- sbin/isakmpd/x509.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'sbin') diff --git a/sbin/isakmpd/x509.c b/sbin/isakmpd/x509.c index 43a66cfe533..d02acbd16f7 100644 --- a/sbin/isakmpd/x509.c +++ b/sbin/isakmpd/x509.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.c,v 1.52 2001/06/05 05:59:43 niklas Exp $ */ +/* $OpenBSD: x509.c,v 1.53 2001/06/05 06:51:05 angelos Exp $ */ /* $EOM: x509.c,v 1.54 2001/01/16 18:42:16 ho Exp $ */ /* @@ -1138,15 +1138,6 @@ x509_cert_obtain (u_int8_t *id, size_t id_len, void *data, u_int8_t **cert, if (!scert) return 0; - *certlen = LC (i2d_X509, (scert, NULL)); - p = *cert = malloc (*certlen); - if (!p) - { - log_error ("x509_cert_obtain: malloc (%d) failed", *certlen); - return 0; - } - *certlen = LC (i2d_X509, (scert, &p)); - x509_serialize (scert, cert, certlen); if (!*cert) return 0; -- cgit v1.2.3