summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_synclists.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-09-17 08:35:07 +0000
committerAndrew Tridgell <tridge@samba.org>1998-09-17 08:35:07 +0000
commitc8e6aa6dc169f717b9d05b32fc666c0656fd54b3 (patch)
treee37fef229d0f9d4c45c022de034be55a53d9e486 /source3/nmbd/nmbd_synclists.c
parentd66a657f90b1c8410f2d49be87539954a39a0469 (diff)
downloadsamba-c8e6aa6dc169f717b9d05b32fc666c0656fd54b3.tar.gz
samba-c8e6aa6dc169f717b9d05b32fc666c0656fd54b3.tar.bz2
samba-c8e6aa6dc169f717b9d05b32fc666c0656fd54b3.zip
fixed another potential fork bomb where the wins file becomes
non-writeable for some reason. (This used to be commit 9edd43dcd6cc040416f11e00320c53682558fd8a)
Diffstat (limited to 'source3/nmbd/nmbd_synclists.c')
-rw-r--r--source3/nmbd/nmbd_synclists.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd_synclists.c b/source3/nmbd/nmbd_synclists.c
index 432b6dcbe2..dee64d501b 100644
--- a/source3/nmbd/nmbd_synclists.c
+++ b/source3/nmbd/nmbd_synclists.c
@@ -234,6 +234,8 @@ static void complete_sync(struct sync_record *s)
int count=0;
f = fopen(s->fname,"r");
+
+ if (!f) return;
while (!feof(f)) {