diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-06-26 00:08:48 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-06-26 00:08:48 +0000 |
commit | 5a8b587fc6d05b62f8e7bd47f24040529f95a228 (patch) | |
tree | 06c1ed8f3f9766ee32164b173c4f5a9dfa347b93 | |
parent | 33fccd5fa2c8b899cde90fd9405fd9ff9275a280 (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
-rw-r--r-- | asn1.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |