aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-03-23 07:34:00 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-03-23 07:34:00 +0000
commit888880eb25ba8dc80dc02c6ec61de73abccbfe91 (patch)
tree1df179ff91c5bf47b0da9e5291780537b087c426 /plugins
parente8e4bff8ee058bdf37780e3ed796c9b7ab30ddab (diff)
Rewrote check for szStr in dissect_ICBAPhysicalDevice_get_LogicalDevice_rqst.
Coverity 535. svn path=/trunk/; revision=36282
Diffstat (limited to 'plugins')
-rw-r--r--plugins/profinet/packet-dcom-cba.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/profinet/packet-dcom-cba.c b/plugins/profinet/packet-dcom-cba.c
index 5c931db260..d2e1027a07 100644
--- a/plugins/profinet/packet-dcom-cba.c
+++ b/plugins/profinet/packet-dcom-cba.c
@@ -575,7 +575,7 @@ dissect_ICBAPhysicalDevice_get_LogicalDevice_rqst(tvbuff_t *tvb, int offset,
hf_cba_name, szStr, u32MaxStr);
}
- if(szStr != NULL) {
+ if(strlen(szStr) > 0) {
call = se_strdup(szStr);
info->call_data->private_data = call;
}