diff options
Diffstat (limited to 'source3/nmbd/nmbd_synclists.c')
-rw-r--r-- | source3/nmbd/nmbd_synclists.c | 2 |
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)) { |