summaryrefslogtreecommitdiff
path: root/source3/smbd/ipc.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-05-27 21:38:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:13 -0500
commit263b01ecb9a09c80c3b519c5ec4e52437ace9da0 (patch)
tree62a07a90177d0cf19ba2b692d9881a056a840541 /source3/smbd/ipc.c
parentc334de0435419e5105c2aba269d169f9ebf12498 (diff)
downloadsamba-263b01ecb9a09c80c3b519c5ec4e52437ace9da0.tar.gz
samba-263b01ecb9a09c80c3b519c5ec4e52437ace9da0.tar.bz2
samba-263b01ecb9a09c80c3b519c5ec4e52437ace9da0.zip
r15911: Make us survive rpc-authcontext committed next
(This used to be commit c24bfdce625782637b5f4d11a5117ef795ddfc2f)
Diffstat (limited to 'source3/smbd/ipc.c')
-rw-r--r--source3/smbd/ipc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index 7f9505606c..3250387909 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -291,6 +291,12 @@ static int api_fd_reply(connection_struct *conn,uint16 vuid,char *outbuf,
return ERROR_NT(NT_STATUS_INVALID_HANDLE);
}
+ if (vuid != p->vuid) {
+ DEBUG(1, ("Got pipe request (pnum %x) using invalid VUID %d, "
+ "expected %d\n", pnum, vuid, p->vuid));
+ return ERROR_NT(NT_STATUS_INVALID_HANDLE);
+ }
+
DEBUG(3,("Got API command 0x%x on pipe \"%s\" (pnum %x)\n", subcommand, p->name, pnum));
/* record maximum data length that can be transmitted in an SMBtrans */