port latest changes from SAMBA_3_0 tree
[obnox/samba/samba-obnox.git] / source3 / passdb / pdb_get_set.c
index ba07a4e01c8b01281aa429340e0138a25ab637e8..15054585512a9b29a60dfaf6b1f3b47f863a8ef7 100644 (file)
@@ -1027,9 +1027,18 @@ BOOL pdb_set_backend_private_data (SAM_ACCOUNT *sampass, void *private_data,
        if (!sampass)
                return False;
 
+#if 0
+       /* With this check backend_private_data_free_fn is *never* set
+          as the methods are never set anywhere. What is this
+          supposed to do ????
+
+          Volker
+       */
+
        /* does this backend 'own' this SAM_ACCOUNT? */
        if (my_methods != sampass->private.backend_private_methods)
                return False;
+#endif
 
        if (sampass->private.backend_private_data && sampass->private.backend_private_data_free_fn) {
                sampass->private.backend_private_data_free_fn(&sampass->private.backend_private_data);