summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/nss/src/lib/util/secasn1d.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/nss/src/lib/util/secasn1d.c b/libs/nss/src/lib/util/secasn1d.c
index bb1887f7c..9b5586228 100644
--- a/libs/nss/src/lib/util/secasn1d.c
+++ b/libs/nss/src/lib/util/secasn1d.c
@@ -2750,7 +2750,6 @@ SEC_ASN1DecoderUpdate(SEC_ASN1DecoderContext *cx,
sec_asn1d_state *state = NULL;
unsigned long consumed;
SEC_ASN1EncodingPart what;
- sec_asn1d_state *stateEnd = cx->current;
if (cx->status == needBytes)
cx->status = keepGoing;
@@ -2939,7 +2938,7 @@ SEC_ASN1DecoderUpdate(SEC_ASN1DecoderContext *cx,
}
if (cx->status == decodeError) {
- while (state != NULL && stateEnd->parent != state) {
+ while (state != NULL) {
sec_asn1d_free_child(state, PR_TRUE);
state = state->parent;
}