Fix more Visual C++ analysis errors.
svn path=/trunk/; revision=35995
This commit is contained in:
parent
cb3aa2b633
commit
c223ebe718
|
@ -2870,6 +2870,7 @@ dissect_dcerpc_cn_bind (tvbuff_t *tvb, gint offset, packet_info *pinfo,
|
|||
}
|
||||
|
||||
|
||||
memset(&trans_id, 0, sizeof(trans_id));
|
||||
for (j = 0; j < num_trans_items; j++) {
|
||||
proto_tree *trans_tree = NULL;
|
||||
proto_item *trans_item = NULL;
|
||||
|
|
|
@ -309,7 +309,8 @@ dissect_distcc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
|
|||
offset+=4;
|
||||
|
||||
/* read the parameter */
|
||||
sscanf(tvb_get_ptr(tvb, offset, 8), "%08x", ¶meter);
|
||||
if (sscanf(tvb_get_ptr(tvb, offset, 8), "%08x", ¶meter) != 1)
|
||||
return;
|
||||
offset+=8;
|
||||
|
||||
if(!strncmp(token, "DIST", 4)){
|
||||
|
|
Loading…
Reference in New Issue