Fix crash in LDAP dissector, in a generic way (for all callers of
dissect_nt_sid()).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35127
f5534014-38df-0310-8fa8-
9805f1628bb7
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;
}