aboutsummaryrefslogtreecommitdiff
path: root/crypto/asn1
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-12-01 11:13:08 +1000
committerPauli <paul.dale@oracle.com>2020-12-03 11:21:33 +1000
commit7b42408756f53d38022363e2f0ac999db7d23a65 (patch)
tree0f6b7ed81a98fc645fca03c529d9c27f0fe79381 /crypto/asn1
parent30742e8e7f93f58964bf7619f9c1783e6b3b03fc (diff)
downloadopenssl-7b42408756f53d38022363e2f0ac999db7d23a65.zip
openssl-7b42408756f53d38022363e2f0ac999db7d23a65.tar.gz
openssl-7b42408756f53d38022363e2f0ac999db7d23a65.tar.bz2
remove unused assignments
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13577)
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/asn1_par.c4
-rw-r--r--crypto/asn1/tasn_dec.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/crypto/asn1/asn1_par.c b/crypto/asn1/asn1_par.c
index b2a1b3a..cf6d48c 100644
--- a/crypto/asn1/asn1_par.c
+++ b/crypto/asn1/asn1_par.c
@@ -72,10 +72,8 @@ static int asn1_print_info(BIO *bp, long offset, int depth, int hl, long len,
if (saved_indent >= 0)
BIO_set_indent(bp, saved_indent);
if (pop_f_prefix) {
- BIO *next = BIO_pop(bp);
-
+ BIO_pop(bp);
BIO_free(bp);
- bp = next;
}
return i;
}
diff --git a/crypto/asn1/tasn_dec.c b/crypto/asn1/tasn_dec.c
index 3fbf168..09adbf5 100644
--- a/crypto/asn1/tasn_dec.c
+++ b/crypto/asn1/tasn_dec.c
@@ -344,7 +344,6 @@ static int asn1_item_embed_d2i(ASN1_VALUE **pval, const unsigned char **in,
}
len -= p - q;
seq_eoc = 0;
- q = p;
break;
}
/*
@@ -519,7 +518,6 @@ static int asn1_template_noexp_d2i(ASN1_VALUE **val,
aclass = flags & ASN1_TFLG_TAG_CLASS;
p = *in;
- q = p;
/*
* If field is embedded then val needs fixing so it is a pointer to