s3: Consolidate getting the name out of a pipes_struct
[ira/wip.git] / source3 / rpc_server / srv_lsa_hnd.c
index 695164679f50eacf65418a29de35f629dd70fdd4..4233b6f0e6d8d49d41c96e5ffdb78cb7d8650bd2 100644 (file)
@@ -286,8 +286,7 @@ void close_policy_by_pipe(pipes_struct *p)
 
                SAFE_FREE(p->pipe_handles);
                DEBUG(10,("close_policy_by_pipe: deleted handle list for "
-                         "pipe %s\n",
-                         get_pipe_name_from_syntax(talloc_tos(), &p->syntax)));
+                         "pipe %s\n", get_pipe_name_tos(p)));
        }
 }
 
@@ -329,7 +328,7 @@ void *_policy_handle_create(struct pipes_struct *p, struct policy_handle *hnd,
        if (p->pipe_handles->count > MAX_OPEN_POLS) {
                DEBUG(0, ("policy_handle_create: ERROR: too many handles (%d) "
                          "on pipe %s.\n", (int)p->pipe_handles->count,
-                         get_pipe_name_from_syntax(talloc_tos(), &p->syntax)));
+                         get_pipe_name_tos(p)));
                *pstatus = NT_STATUS_INSUFFICIENT_RESOURCES;
                return NULL;
        }