X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/677db9ffe0b9ea79bb52ffacc5ccb964e261093a..8d14d66b84cc370cefe54b33de1b95bb49c90bf6:/keydb_keyd.c?ds=inline diff --git a/keydb_keyd.c b/keydb_keyd.c index dcdcb85..35d2dc4 100644 --- a/keydb_keyd.c +++ b/keydb_keyd.c @@ -116,6 +116,10 @@ static void keyd_cleanupdb(void) logthing(LOGTHING_NOTICE, "Error shutting down socket: %d", errno); } + if (close(keyd_fd) < 0) { + logthing(LOGTHING_NOTICE, "Error closing down socket: %d", + errno); + } keyd_fd = -1; return;