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
This commit is contained in:
Guy Harris 2000-06-26 00:08:48 +00:00
parent 33fccd5fa2
commit 5a8b587fc6
1 changed files with 2 additions and 2 deletions

4
asn1.c
View File

@ -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;