1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r1135: - allow integer function numbers in ndrdump

- dump unused data in ndrdump
(This used to be commit 65c5590bd0)
This commit is contained in:
Andrew Tridgell 2004-06-14 08:07:26 +00:00 committed by Gerald (Jerry) Carter
parent 791ee4a581
commit 2fcf85920d

View File

@ -40,6 +40,10 @@ static const struct dcerpc_interface_call *find_function(
const char *function)
{
int i;
if (isdigit(function[0])) {
i = strtol(function, NULL, 0);
return &p->calls[i];
}
for (i=0;i<p->num_calls;i++) {
if (strcmp(p->calls[i].name, function) == 0) {
break;
@ -161,6 +165,7 @@ static void show_functions(const struct dcerpc_interface_table *p)
if (ndr->offset != ndr->data_size) {
printf("WARNING! %d unread bytes\n", ndr->data_size - ndr->offset);
dump_data(0, ndr->data+ndr->offset, ndr->data_size - ndr->offset);
}
pr.mem_ctx = mem_ctx;