Squelch a compiler warning. (We really might want a

"tvb_ensure_reported_length_remaining()" call here.)

svn path=/trunk/; revision=11946
This commit is contained in:
Guy Harris 2004-09-08 21:14:40 +00:00
parent 8b92640589
commit d8eefd6115
1 changed files with 2 additions and 1 deletions

View File

@ -2614,7 +2614,8 @@ dissect_dcerpc_cn_stub (tvbuff_t *tvb, int offset, packet_info *pinfo,
length = tvb_length_remaining(tvb, offset);
reported_length = tvb_reported_length_remaining(tvb, offset);
if (reported_length < auth_info->auth_size) {
if (reported_length < 0 ||
(guint32)reported_length < auth_info->auth_size) {
/* We don't even have enough bytes for the authentication
stuff. */
return;