diff options
author | Tim Taubert <ttaubert@mozilla.com> | 2018-05-23 14:07:30 +0200 |
---|---|---|
committer | Tim Taubert <ttaubert@mozilla.com> | 2018-05-23 14:07:30 +0200 |
commit | e9f462476f3f4140e214db0bbb29c4822fb334d2 (patch) | |
tree | dd4e5821ab9ddc8f443f34978c4a3f886da808d2 | |
parent | d9ef348db9395628991e9f9d031355f306f78f69 (diff) | |
download | nss-hg-e9f462476f3f4140e214db0bbb29c4822fb334d2.tar.gz |
Bug 1463379 - [CID 1435689] Dereferencing null pointer "cx" r=jcj
Reviewers: jcj
Reviewed By: jcj
Bug #: 1463379
Differential Revision: https://phabricator.services.mozilla.com/D1347
-rw-r--r-- | lib/util/secasn1d.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/util/secasn1d.c b/lib/util/secasn1d.c index ccd97481d..ed237ed72 100644 --- a/lib/util/secasn1d.c +++ b/lib/util/secasn1d.c @@ -2987,7 +2987,9 @@ SEC_ASN1DecoderFinish(SEC_ASN1DecoderContext *cx) * XXX anything else that needs to be finished? */ - PORT_FreeArena(cx->our_pool, PR_TRUE); + if (cx) { + PORT_FreeArena(cx->our_pool, PR_TRUE); + } return rv; } |