Welcome! Log In Create A New Profile

Advanced

[njs] Removed dead code introduced in f70929728e86.

Dmitry Volyntsev
August 30, 2022 12:14AM
details: https://hg.nginx.org/njs/rev/907ec4824fa0
branches:
changeset: 1938:907ec4824fa0
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Mon Aug 29 21:09:11 2022 -0700
description:
Removed dead code introduced in f70929728e86.

Found by Coverity (CID 1512554, 1512556).

diffstat:

external/njs_webcrypto_module.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)

diffs (28 lines):

diff -r b48963b98d97 -r 907ec4824fa0 external/njs_webcrypto_module.c
--- a/external/njs_webcrypto_module.c Mon Aug 29 21:08:47 2022 -0700
+++ b/external/njs_webcrypto_module.c Mon Aug 29 21:09:11 2022 -0700
@@ -2112,8 +2112,6 @@ njs_convert_p1363_to_der(njs_vm_t *vm, E

ret = NJS_OK;
ec_sig = NULL;
- r = NULL;
- s = NULL;

n = njs_ec_rs_size(pkey);

@@ -2174,15 +2172,6 @@ done:

if (ec_sig != NULL) {
ECDSA_SIG_free(ec_sig);
-
- } else {
- if (s != NULL) {
- BN_free(s);
- }
-
- if (r != NULL) {
- BN_free(r);
- }
}

return ret;
_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org
Subject Author Views Posted

[njs] Removed dead code introduced in f70929728e86.

Dmitry Volyntsev 173 August 30, 2022 12:14AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 112
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready