vfs_preopen: Fix an uninitialized variable read
authorVolker Lendecke <vl@samba.org>
Wed, 26 Jun 2019 15:43:20 +0000 (17:43 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 28 Jun 2019 15:00:36 +0000 (17:00 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/modules/vfs_preopen.c

index 27d218e1b87536bfb8955c71a4ff4922def3cc37..6a1ccbd6f04a7c9248e2a05ead6da93f1a4a1d14 100644 (file)
@@ -274,6 +274,7 @@ static NTSTATUS preopen_init_helpers(TALLOC_CTX *mem_ctx, size_t to_read,
        result->queue_max = queue_max;
        result->template_fname = NULL;
        result->fnum_sent = 0;
+       result->fnum_queue_end = 0;
 
        for (i=0; i<num_helpers; i++) {
                result->helpers[i].state = result;