s3-vfs: Fix typo in readonly_connect().
authorAndreas Schneider <asn@samba.org>
Mon, 17 Dec 2012 14:21:10 +0000 (15:21 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 21 Dec 2012 12:56:01 +0000 (13:56 +0100)
Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
source3/modules/vfs_readonly.c

index 2b09d882bd71ae58be1200bd813ef33c584dc8c9..7919dbc78bf7b0a2dda48a0ad5c62461c4beb320 100644 (file)
@@ -82,7 +82,7 @@ static int readonly_connect(vfs_handle_struct *handle,
 
       /* Wipe out the VUID cache. */
       for (i=0; i< VUID_CACHE_SIZE; i++) {
-        struct vuid_cache_entry *ent = ent = &conn->vuid_cache.array[i];
+        struct vuid_cache_entry *ent = &conn->vuid_cache.array[i];
         ent->vuid = UID_FIELD_INVALID;
         TALLOC_FREE(ent->session_info);
         ent->read_only = false;