=== modified file 'plugins.d/mandos-client.c' --- plugins.d/mandos-client.c 2018-02-18 01:14:23 +0000 +++ plugins.d/mandos-client.c 2018-02-19 21:32:07 +0000 @@ -613,6 +613,7 @@ } params.size += (unsigned int)bytes_read; } + close(dhpfile); if(params.data == NULL){ dhparamsfilename = NULL; } @@ -1655,8 +1656,10 @@ perror_plus("ioctl SIOCGIFFLAGS"); errno = old_errno; } + close(s); return false; } + close(s); return true; }