stream: Make stream_report_content() tolerate negative size.
authorBen Pfaff <blp@nicira.com>
Wed, 23 Feb 2011 19:29:37 +0000 (11:29 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 23 Feb 2011 23:14:42 +0000 (15:14 -0800)
commitc55acc2eed76ae17667fa5f65f5f3c347b796926
tree14d8d5c4a8dcd2679cc761812654a1d398c8bdb7
parentfe81a2987abeda195f6535cab973b1c753cca4b3
stream: Make stream_report_content() tolerate negative size.

A negative size probably means that a system call failed.  The caller could
set that to 0 but we might as well just tolerate it in
stream_report_content() by making the parameter type signed.

Coverity #10718.
lib/stream.c
lib/stream.h