connection: Just look at buffer size and remove redundant n_fds_out
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 23 Mar 2012 04:48:19 +0000 (00:48 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 23 Mar 2012 04:48:19 +0000 (00:48 -0400)
commit1c5578e87fc0fec0cf585c586462b982fa296101
treec0e705c33dc4521c1b84eee2d4e605c6552ba210
parentcab70c9e5d8c38260a07bb1ddb7618826a120465
connection: Just look at buffer size and remove redundant n_fds_out

Instead of maintaining a count of the fds in the buffer, just compute
that from the buffer size.  That way we don't get out of sync.
src/connection.c