aboutsummaryrefslogtreecommitdiffstats
path: root/packet-gssapi.c
diff options
context:
space:
mode:
authorsharpe <sharpe@f5534014-38df-0310-8fa8-9805f1628bb7>2002-08-25 19:22:20 +0000
committersharpe <sharpe@f5534014-38df-0310-8fa8-9805f1628bb7>2002-08-25 19:22:20 +0000
commit2d67ccb856eadfc0e98ad2007096245d307e672d (patch)
tree513f87117439387c4216bcc0f5043bc496884415 /packet-gssapi.c
parent6edebd9641dd9f5603472261110a272898b72514 (diff)
Small fix to get the OIDs to display properly in GSSAPI.
Next to turn SPNEGO into SPNEGO and not SNEGO ... and display the contents properly as NTLMSSP. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6083 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-gssapi.c')
-rw-r--r--packet-gssapi.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/packet-gssapi.c b/packet-gssapi.c
index eeff9e5295..b343cecddc 100644
--- a/packet-gssapi.c
+++ b/packet-gssapi.c
@@ -2,7 +2,7 @@
* Dissector for GSS-API tokens as described in rfc2078, section 3.1
* Copyright 2002, Tim Potter <tpot@samba.org>
*
- * $Id: packet-gssapi.c,v 1.2 2002/08/24 00:40:45 guy Exp $
+ * $Id: packet-gssapi.c,v 1.3 2002/08/25 19:22:20 sharpe Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -117,7 +117,7 @@ dissect_gssapi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
ASN1_SCK hnd;
int ret, offset = 0;
gboolean def;
- guint len, cls, con, tag, nbytes;
+ guint len1, len, cls, con, tag, nbytes;
subid_t *oid;
gchar *oid_string;
gssapi_oid_value *value;
@@ -133,8 +133,8 @@ dissect_gssapi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* Read header */
asn1_open(&hnd, tvb, offset);
-
- ret = asn1_header_decode(&hnd, &cls, &con, &tag, &def, &len);
+
+ ret = asn1_header_decode(&hnd, &cls, &con, &tag, &def, &len1);
if (ret != ASN1_ERR_NOERROR) {
dissect_parse_error(tvb, offset, pinfo, subtree,
@@ -150,6 +150,8 @@ dissect_gssapi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
goto done;
}
+ offset = hnd.offset;
+
/* Read oid */
ret = asn1_oid_decode(&hnd, &oid, &len, &nbytes);
@@ -162,8 +164,8 @@ dissect_gssapi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
oid_string = format_oid(oid, len);
- proto_tree_add_text(
- subtree, tvb, offset, nbytes, "OID: %s", oid_string);
+ proto_tree_add_text(subtree, tvb, offset, nbytes, "OID: %s",
+ oid_string);
offset += nbytes;