summaryrefslogtreecommitdiff
path: root/dbutil.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-10-18 22:41:27 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-10-18 22:41:27 +0800
commita653a2e34c458284d13dc7905be55ed59d662657 (patch)
tree270c7d0f2b1e7b23d3f04fd68926ca7cd8db575d /dbutil.c
parentfc2ae677694ec4d4e44b998bc164fabc5da3921a (diff)
downloaddropbear-a653a2e34c458284d13dc7905be55ed59d662657.tar.gz
test close < 0, from Marco Wenzel
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbutil.c b/dbutil.c
index 830e8d2..e5c5a31 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -506,7 +506,7 @@ out:
void m_close(int fd) {
int val;
- if (fd == -1) {
+ if (fd < 0) {
return;
}