1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-16 11:33:16 +03:00

s3:rpc make num_pipe_handles get an actual pipe as argument

Let the function abstract out how handles are counted
This commit is contained in:
Simo Sorce
2010-06-07 16:02:14 -04:00
parent 22e9015e97
commit f9fc4df0c0
3 changed files with 6 additions and 6 deletions

View File

@@ -62,12 +62,12 @@ static bool is_samr_lsa_pipe(const struct ndr_syntax_id *syntax)
|| ndr_syntax_id_equal(syntax, &ndr_table_lsarpc.syntax_id));
}
size_t num_pipe_handles(struct handle_list *list)
size_t num_pipe_handles(pipes_struct *p)
{
if (list == NULL) {
if (p->pipe_handles == NULL) {
return 0;
}
return list->count;
return p->pipe_handles->count;
}
/****************************************************************************