diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-11-29 09:38:45 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-11-29 09:38:45 +0000 |
commit | 37df4d6886e00c52f63570b21aedbb6da3159ddd (patch) | |
tree | dacce1ee120079ae8f69282679c911d338ab463b /epan | |
parent | 886e7e603b9de1a037138603742cc8ddc2979b26 (diff) |
"dcerpc_smb_fetch_pol()" doesn't necessarily return a name, as we might
not have seen anything that would let us give a name to a handle.
svn path=/trunk/; revision=16623
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-smb2.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/epan/dissectors/packet-smb2.c b/epan/dissectors/packet-smb2.c index 00888e411d..6418e75772 100644 --- a/epan/dissectors/packet-smb2.c +++ b/epan/dissectors/packet-smb2.c @@ -612,12 +612,13 @@ dissect_smb2_fid(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset /* put the filename in col_info */ if (dcerpc_smb_fetch_pol(&policy_hnd, &fid_name, &open_frame, &close_frame, pinfo->fd->num)) { - if(hnd_item){ - proto_item_append_text(hnd_item, " %s", fid_name); - } - if (check_col(pinfo->cinfo, COL_INFO)){ - - col_append_fstr(pinfo->cinfo, COL_INFO, " %s", fid_name); + if(fid_name){ + if(hnd_item){ + proto_item_append_text(hnd_item, " %s", fid_name); + } + if (check_col(pinfo->cinfo, COL_INFO)){ + col_append_fstr(pinfo->cinfo, COL_INFO, " %s", fid_name); + } } } |