nbd-server: fix accepted connections descriptor initialization and use
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 21 Jun 2012 21:40:16 +0000 (01:40 +0400)
committerWouter Verhelst <w@uter.be>
Sat, 23 Jun 2012 23:38:34 +0000 (01:38 +0200)
commit2a62394c64734f32d4d8205c80ac935f59f3f873
tree1c7d0a86122ff49610c5f4f1446363099481207c
parent59c25aa8e743ad0b1ab9aec8837d15181670e057
nbd-server: fix accepted connections descriptor initialization and use

Change the value for undefined descriptor from 0 to -1 because
any value greater or equal to 0 can be a valid file descriptor.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
nbd-server.c