p2pd: do not close an fd that is not open
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 23 Oct 2012 10:12:46 +0000 (12:12 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 23 Oct 2012 11:45:14 +0000 (13:45 +0200)
commit0abbc307d2ed86bde6e368ef5e70f776962a42ad
treeb45c76a672b414cf82040e53fea837b1cc68cc11
parent4a65c934b879328b9cf3c3f5e689f4473388749d
p2pd: do not close an fd that is not open

Coverity:
CID 739656 (#6 of 8): Argument cannot be negative (NEGATIVE_RETURNS)
At (7): "capturingSkfd" is passed to a parameter that cannot be negative.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/p2pd/src/NetworkInterfaces.c