aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smb2.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-11-29 09:38:45 +0000
committerGuy Harris <guy@alum.mit.edu>2005-11-29 09:38:45 +0000
commit37df4d6886e00c52f63570b21aedbb6da3159ddd (patch)
treedacce1ee120079ae8f69282679c911d338ab463b /epan/dissectors/packet-smb2.c
parent886e7e603b9de1a037138603742cc8ddc2979b26 (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/dissectors/packet-smb2.c')
-rw-r--r--epan/dissectors/packet-smb2.c13
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);
+ }
}
}