aboutsummaryrefslogtreecommitdiffstats
path: root/asn1.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-06-26 00:08:48 +0000
committerGuy Harris <guy@alum.mit.edu>2000-06-26 00:08:48 +0000
commit5a8b587fc6d05b62f8e7bd47f24040529f95a228 (patch)
tree06c1ed8f3f9766ee32164b173c4f5a9dfa347b93 /asn1.c
parent33fccd5fa2c8b899cde90fd9405fd9ff9275a280 (diff)
In "asn1_oid_value_decode()", set "size" directly from "enc_len", rather
than setting "eoc" from "asn1->pointer" and "enc_len" and then setting "size" from "eoc" and "asn1->pointer", to make it clearer how it's being set. svn path=/trunk/; revision=2090
Diffstat (limited to 'asn1.c')
-rw-r--r--asn1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1.c b/asn1.c
index 1be59460a7..7ccc30f429 100644
--- a/asn1.c
+++ b/asn1.c
@@ -1,7 +1,7 @@
/* asn1.c
* Routines for ASN.1 BER dissection
*
- * $Id: asn1.c,v 1.4 2000/03/27 08:26:23 guy Exp $
+ * $Id: asn1.c,v 1.5 2000/06/26 00:08:48 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -774,7 +774,7 @@ asn1_oid_value_decode ( ASN1_SCK *asn1, int enc_len, subid_t **oid, guint *len)
subid_t *optr;
eoc = asn1->pointer + enc_len;
- size = eoc - asn1->pointer + 1;
+ size = enc_len + 1;
*oid = g_malloc(size * sizeof(gulong));
optr = *oid;