summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util/secasn1d.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/secasn1d.c b/lib/util/secasn1d.c
index 19a96e7b0..1969f2df3 100644
--- a/lib/util/secasn1d.c
+++ b/lib/util/secasn1d.c
@@ -1595,6 +1595,7 @@ sec_asn1d_parse_leaf (sec_asn1d_state *state,
item = (SECItem *)(state->dest);
if (item != NULL && item->data != NULL) {
+ unsigned long offset;
/* Strip leading zeroes when target is unsigned integer */
if (state->underlying_kind == SEC_ASN1_INTEGER && /* INTEGER */
item->len == 0 && /* MSB */
@@ -1605,7 +1606,7 @@ sec_asn1d_parse_leaf (sec_asn1d_state *state,
len--;
}
}
- unsigned long offset = item->len;
+ offset = item->len;
if (state->underlying_kind == SEC_ASN1_BIT_STRING) {
// The previous bit string must have no unused bits.
if (item->len & 0x7) {