diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbfilter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c index 2f78140897b..136047adde9 100644 --- a/source3/utils/smbfilter.c +++ b/source3/utils/smbfilter.c @@ -44,6 +44,7 @@ static void save_file(const char *fname, void *ppacket, size_t length) } if (write(fd, ppacket, length) != length) { fprintf(stderr,"Failed to write %s\n", fname); + close(fd); return; } close(fd); |