Fix more Visual C++ analysis errors.

svn path=/trunk/; revision=35995
This commit is contained in:
Gerald Combs 2011-02-18 01:18:44 +00:00
parent cb3aa2b633
commit c223ebe718
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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", &parameter);
if (sscanf(tvb_get_ptr(tvb, offset, 8), "%08x", &parameter) != 1)
return;
offset+=8;
if(!strncmp(token, "DIST", 4)){