diff options
author | Tim Potter <tpot@samba.org> | 2005-01-25 10:03:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:11 -0500 |
commit | 051c7b5e0c5db64e3da783471663996d6568e13f (patch) | |
tree | d0caae0aa36b1ae80435aa7028ee78ac478d3ab6 /source4/torture/rap | |
parent | 6cec461c8c8e6faad93e6d2a24d8da705c4ae8a0 (diff) | |
download | samba-051c7b5e0c5db64e3da783471663996d6568e13f.tar.gz samba-051c7b5e0c5db64e3da783471663996d6568e13f.tar.bz2 samba-051c7b5e0c5db64e3da783471663996d6568e13f.zip |
r4980: Copy RAP callno constants from Samba 3 and start to use them.
(This used to be commit e32ade44858b869001d2990c788a7e34fb70b121)
Diffstat (limited to 'source4/torture/rap')
-rw-r--r-- | source4/torture/rap/rap.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source4/torture/rap/rap.c b/source4/torture/rap/rap.c index dd0654f90f..b176de92c8 100644 --- a/source4/torture/rap/rap.c +++ b/source4/torture/rap/rap.c @@ -213,7 +213,7 @@ static NTSTATUS smbcli_rap_netshareenum(struct smbcli_state *cli, NTSTATUS result = NT_STATUS_UNSUCCESSFUL; int i; - call = new_rap_cli_call(NULL, 0); + call = new_rap_cli_call(NULL, RAP_WshareEnum); if (call == NULL) return NT_STATUS_NO_MEMORY; @@ -303,7 +303,7 @@ static NTSTATUS smbcli_rap_netserverenum2(struct smbcli_state *cli, NTSTATUS result = NT_STATUS_UNSUCCESSFUL; int i; - call = new_rap_cli_call(NULL, 104); + call = new_rap_cli_call(NULL, RAP_NetServerEnum2); if (call == NULL) return NT_STATUS_NO_MEMORY; @@ -442,7 +442,7 @@ BOOL torture_rap_scan(void) { TALLOC_CTX *mem_ctx; struct smbcli_state *cli; - uint16 callno; + int callno; mem_ctx = talloc_init("torture_rap_scan"); @@ -456,12 +456,13 @@ BOOL torture_rap_scan(void) result = rap_cli_do_call(cli, call); - if (NT_STATUS_EQUAL(result, NT_STATUS_INVALID_PARAMETER)) - printf("callno %d is RAP call\n", callno); + if (!NT_STATUS_EQUAL(result, NT_STATUS_INVALID_PARAMETER)) + continue; + + printf("callno %d is RAP call\n", callno); } torture_close_connection(cli); - return True; } |