aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-04-22 01:54:51 +0000
committerGuy Harris <guy@alum.mit.edu>2002-04-22 01:54:51 +0000
commit14caf2a9a558281fac7d4321e79e44aed17d0998 (patch)
tree9279c62447f202d1220408d9554f1fcb250a32c3 /packet-smb.c
parent677ad9ee25e5a95dad23db94e9133bb5222eada9 (diff)
Fix the return value of "dissect_nt_sec_desc()".
svn path=/trunk/; revision=5213
Diffstat (limited to 'packet-smb.c')
-rw-r--r--packet-smb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/packet-smb.c b/packet-smb.c
index dfeb6bbd3c..fd58259eef 100644
--- a/packet-smb.c
+++ b/packet-smb.c
@@ -3,7 +3,7 @@
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
* 2001 Rewrite by Ronnie Sahlberg and Guy Harris
*
- * $Id: packet-smb.c,v 1.244 2002/04/22 01:07:19 guy Exp $
+ * $Id: packet-smb.c,v 1.245 2002/04/22 01:54:51 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -7024,9 +7024,11 @@ dissect_nt_sec_desc(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *p
}
- if (len == -1)
+ if (len == -1) {
proto_item_set_len(item, offset-old_offset);
- return offset;
+ return offset;
+ } else
+ return offset+len;
}
static int