summaryrefslogtreecommitdiff
path: root/source3/libmsrpc/cac_winreg.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-09-15 18:32:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:51:50 -0500
commitc4013df0c18779191d124dcb3ee35499900b54e0 (patch)
tree5565886a7c90e36a73b073b040f967bdb7870d21 /source3/libmsrpc/cac_winreg.c
parent1052e48e87fc1cf0e93ce880fce1820bd842055b (diff)
downloadsamba-c4013df0c18779191d124dcb3ee35499900b54e0.tar.gz
samba-c4013df0c18779191d124dcb3ee35499900b54e0.tar.bz2
samba-c4013df0c18779191d124dcb3ee35499900b54e0.zip
r18560: * Add in the winreg and initshutdown IDL files
* rename PI_SHUTDOWN from include/smb.h to PI_INITSHUTDOWN for compatibility with pidl libndr output (This used to be commit 23a882861311d9d6ca45af1bfcc90d05846ba3a9)
Diffstat (limited to 'source3/libmsrpc/cac_winreg.c')
-rw-r--r--source3/libmsrpc/cac_winreg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/libmsrpc/cac_winreg.c b/source3/libmsrpc/cac_winreg.c
index 91db33d295..aa20dcff8c 100644
--- a/source3/libmsrpc/cac_winreg.c
+++ b/source3/libmsrpc/cac_winreg.c
@@ -965,15 +965,15 @@ int cac_Shutdown(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct Shutdown *op)
}
/*initialize for winreg pipe if we have to*/
- if(!hnd->_internal.pipes[PI_SHUTDOWN]) {
- if(!(pipe_hnd = cli_rpc_pipe_open_noauth(srv->cli, PI_SHUTDOWN, &(hnd->status)))) {
+ if(!hnd->_internal.pipes[PI_INITSHUTDOWN]) {
+ if(!(pipe_hnd = cli_rpc_pipe_open_noauth(srv->cli, PI_INITSHUTDOWN, &(hnd->status)))) {
return CAC_FAILURE;
}
- hnd->_internal.pipes[PI_SHUTDOWN] = True;
+ hnd->_internal.pipes[PI_INITSHUTDOWN] = True;
}
- pipe_hnd = cac_GetPipe(hnd, PI_SHUTDOWN);
+ pipe_hnd = cac_GetPipe(hnd, PI_INITSHUTDOWN);
if(!pipe_hnd) {
hnd->status = NT_STATUS_INVALID_HANDLE;
return CAC_FAILURE;
@@ -1006,12 +1006,12 @@ int cac_AbortShutdown(CacServerHandle *hnd, TALLOC_CTX *mem_ctx) {
if(!hnd)
return CAC_FAILURE;
- if(!hnd->_internal.ctx || !hnd->_internal.pipes[PI_SHUTDOWN]) {
+ if(!hnd->_internal.ctx || !hnd->_internal.pipes[PI_INITSHUTDOWN]) {
hnd->status = NT_STATUS_INVALID_HANDLE;
return CAC_FAILURE;
}
- pipe_hnd = cac_GetPipe(hnd, PI_SHUTDOWN);
+ pipe_hnd = cac_GetPipe(hnd, PI_INITSHUTDOWN);
if(!pipe_hnd) {
hnd->status = NT_STATUS_INVALID_HANDLE;
return CAC_FAILURE;