projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update copyright year
[oweals/openssl.git]
/
crypto
/
ec
/
ecp_smpl.c
diff --git
a/crypto/ec/ecp_smpl.c
b/crypto/ec/ecp_smpl.c
index f6a6cedb0ae36a5ea19937b91e7d08a5b70bdfc6..b354bfe9ce9ee4747eb19eef3a83f7c48d953500 100644
(file)
--- a/
crypto/ec/ecp_smpl.c
+++ b/
crypto/ec/ecp_smpl.c
@@
-11,7
+11,7
@@
#include <openssl/err.h>
#include <openssl/symhacks.h>
#include <openssl/err.h>
#include <openssl/symhacks.h>
-#include "ec_l
c
l.h"
+#include "ec_l
oca
l.h"
const EC_METHOD *EC_GFp_simple_method(void)
{
const EC_METHOD *EC_GFp_simple_method(void)
{
@@
-307,8
+307,7
@@
int ec_GFp_simple_group_check_discriminant(const EC_GROUP *group, BN_CTX *ctx)
ret = 1;
err:
ret = 1;
err:
- if (ctx != NULL)
- BN_CTX_end(ctx);
+ BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
}
BN_CTX_free(new_ctx);
return ret;
}
@@
-787,8
+786,7
@@
int ec_GFp_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
ret = 1;
end:
ret = 1;
end:
- if (ctx) /* otherwise we already called BN_CTX_end */
- BN_CTX_end(ctx);
+ BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
return ret;
}
BN_CTX_free(new_ctx);
return ret;
}