summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/dcerpc.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-05-10 05:57:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:46 -0500
commit428873fd70f6fcbd6c51026e7bce419074296116 (patch)
treebcc20418943a99834bda653b47b8a307aaefb26c /source4/librpc/rpc/dcerpc.h
parent3590835ee606fe06c5ea5bf5ed7beba6dd087c60 (diff)
downloadsamba-428873fd70f6fcbd6c51026e7bce419074296116.tar.gz
samba-428873fd70f6fcbd6c51026e7bce419074296116.tar.bz2
samba-428873fd70f6fcbd6c51026e7bce419074296116.zip
r15524: fix a problem with rpc faults from bind and alter context
requests. The fix involves using the same packet queue mechanism for these requests as normal requests, which also simplifies the code somewhat (This used to be commit 2e7f5add13da3061d2f2e2869d10df06b3a98f40)
Diffstat (limited to 'source4/librpc/rpc/dcerpc.h')
-rw-r--r--source4/librpc/rpc/dcerpc.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/source4/librpc/rpc/dcerpc.h b/source4/librpc/rpc/dcerpc.h
index 39de9fcaa8..a609d17795 100644
--- a/source4/librpc/rpc/dcerpc.h
+++ b/source4/librpc/rpc/dcerpc.h
@@ -84,12 +84,6 @@ struct dcerpc_connection {
/* Sync requests waiting to be shipped */
struct rpc_request *request_queue;
- /* private pointer for pending binds */
- void *bind_private;
-
- /* private pointer for pending alter context requests */
- void *alter_private;
-
/* the next context_id to be assigned */
uint32_t next_context_id;
};
@@ -232,6 +226,11 @@ struct rpc_request {
uint32_t flags;
uint32_t fault_code;
+ /* this is used to distinguish bind and alter_context requests
+ from normal requests */
+ void (*recv_handler)(struct rpc_request *conn,
+ DATA_BLOB *blob, struct ncacn_packet *pkt);
+
const struct GUID *object;
uint16_t opnum;
DATA_BLOB request_data;