diff options
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-windows-common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-windows-common.c b/epan/dissectors/packet-windows-common.c index 2f6acc15e3..121b3adac6 100644 --- a/epan/dissectors/packet-windows-common.c +++ b/epan/dissectors/packet-windows-common.c @@ -1504,14 +1504,14 @@ dissect_nt_sid(tvbuff_t *tvb, int offset, proto_tree *parent_tree, na_offset = offset; offset++; - /* if no tree, just return the offset of the end_of_SID+1 */ - if (!parent_tree) - return(offset+=(6+(num_auth*4))); - if(sid_str) *sid_str=NULL; if(hf_sid==-1){ + /* if no tree, just return the offset of the end_of_SID+1 */ + if (!parent_tree) + return(offset+=(6+(num_auth*4))); + hf_sid=hf_nt_sid; } |