projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make OCSP_id_cmp and OCSP_id_issuer_cmp accept const params
[oweals/openssl.git]
/
crypto
/
ec
/
ec_print.c
diff --git
a/crypto/ec/ec_print.c
b/crypto/ec/ec_print.c
index 1afa2ce875a7e49b4c3ca4fd43296f3550460ac4..027a51928aab85d2adbfef616ddf45da5cbf56ab 100644
(file)
--- a/
crypto/ec/ec_print.c
+++ b/
crypto/ec/ec_print.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 2002-201
6
The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2002-201
8
The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@
-8,6
+8,7
@@
*/
#include <openssl/crypto.h>
*/
#include <openssl/crypto.h>
+#include <openssl/err.h>
#include "ec_lcl.h"
BIGNUM *EC_POINT_point2bn(const EC_GROUP *group,
#include "ec_lcl.h"
BIGNUM *EC_POINT_point2bn(const EC_GROUP *group,
@@
-39,9
+40,10
@@
EC_POINT *EC_POINT_bn2point(const EC_GROUP *group,
if ((buf_len = BN_num_bytes(bn)) == 0)
return NULL;
if ((buf_len = BN_num_bytes(bn)) == 0)
return NULL;
- buf = OPENSSL_malloc(buf_len);
- if (buf == NULL)
+ if ((buf = OPENSSL_malloc(buf_len)) == NULL) {
+ ECerr(EC_F_EC_POINT_BN2POINT, ERR_R_MALLOC_FAILURE);
return NULL;
return NULL;
+ }
if (!BN_bn2bin(bn, buf)) {
OPENSSL_free(buf);
if (!BN_bn2bin(bn, buf)) {
OPENSSL_free(buf);