diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-06-21 09:38:59 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-06-21 09:38:59 +0000 |
commit | 33f4400f83a517ea30f7902a773801b5affe2df9 (patch) | |
tree | 4f2079d1ce173ba61d9270e4f2df172e3c43be06 /epan/dissectors/packet-gssapi.c | |
parent | 4af84b3d87d68167043ba6f6cfbd1f43a480b3fa (diff) |
the maximum ASN OID length is 256 bytes and there is a define to control this.
fix bug251 and all other occurances where an oid string passed to packet_ber_object_identifier()
is not defined as foo[MAX_OID_STR_LEN]
svn path=/trunk/; revision=14720
Diffstat (limited to 'epan/dissectors/packet-gssapi.c')
-rw-r--r-- | epan/dissectors/packet-gssapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gssapi.c b/epan/dissectors/packet-gssapi.c index 1e5f244ef4..bc16e2352c 100644 --- a/epan/dissectors/packet-gssapi.c +++ b/epan/dissectors/packet-gssapi.c @@ -43,6 +43,7 @@ #include <epan/dissectors/packet-frame.h> #include "epan/conversation.h" #include "packet-ber.h" +#include "to_str.h" static int proto_gssapi = -1; @@ -123,7 +124,7 @@ dissect_gssapi_work(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean pc, ind_field; gint32 tag; guint32 len1; - gchar oid[128]; /* should be enough */ + gchar oid[MAX_OID_STR_LEN]; start_offset=0; offset=start_offset; |