diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-05 06:51:06 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-05 06:51:06 +0000 |
commit | 320a7ecd4614e9e06ac6e8eb7ec519a77382dc90 (patch) | |
tree | 1d00726d34d30af7394e94d779e4502836b5049e /sbin | |
parent | 39bf3eed20b71f4f4af2b4ce5543d4385e187029 (diff) |
Bad niklas, re-committed redundant code.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/isakmpd/x509.c | 11 |
1 files changed, 1 insertions, 10 deletions
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; |