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

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

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