s3-rpc_server: increase max number of open policy handles per pipe to 2048.
[ira/wip.git] / source3 / rpc_server / srv_lsa_hnd.c
index 21b297af2dabf462905cbd790eb073851321b876..94e73fb54d4fed2bf76d92eeb89f919da0adc5b2 100644 (file)
@@ -46,7 +46,7 @@ struct handle_list {
 
 /* This is the max handles across all instances of a pipe name. */
 #ifndef MAX_OPEN_POLS
-#define MAX_OPEN_POLS 1024
+#define MAX_OPEN_POLS 2048
 #endif
 
 /****************************************************************************
@@ -337,7 +337,7 @@ void *_policy_handle_create(struct pipes_struct *p, struct policy_handle *hnd,
                *pstatus = NT_STATUS_NO_MEMORY;
                return NULL;
        }
-       talloc_set_name(data, "%s", type);
+       talloc_set_name_const(data, type);
 
        pol = create_policy_hnd_internal(p, hnd, data);
        if (pol == NULL) {