diff options
author | Andreas Schneider <asn@samba.org> | 2011-07-15 18:03:47 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-07-21 18:40:23 +0200 |
commit | 6a4a6efdc9b76d0eb0229ef3f355cb82ba22969c (patch) | |
tree | e7a56fdd27c8ccab9bdac342afcc8169e6c4c9ab /source3/rpc_server | |
parent | 4a6a588e442e8b0880051c92af82eb0fd3bc7f99 (diff) | |
download | samba-6a4a6efdc9b76d0eb0229ef3f355cb82ba22969c.tar.gz samba-6a4a6efdc9b76d0eb0229ef3f355cb82ba22969c.tar.bz2 samba-6a4a6efdc9b76d0eb0229ef3f355cb82ba22969c.zip |
s3-rpc_server: Remove unused endpoint information.
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/rpc_server.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c index f603b582c8..7b0982e9b1 100644 --- a/source3/rpc_server/rpc_server.c +++ b/source3/rpc_server/rpc_server.c @@ -641,7 +641,6 @@ static void dcerpc_ncacn_accept(struct tevent_context *ev_ctx, struct messaging_context *msg_ctx, enum dcerpc_transport_t transport, const char *name, - uint16_t port, struct tsocket_address *cli_addr, struct tsocket_address *srv_addr, int s, @@ -798,7 +797,6 @@ static void dcerpc_ncacn_tcpip_listener(struct tevent_context *ev, state->msg_ctx, NCACN_IP_TCP, NULL, - state->ep.port, cli_addr, srv_addr, s, @@ -924,7 +922,7 @@ static void dcerpc_ncalrpc_listener(struct tevent_context *ev, dcerpc_ncacn_accept(state->ev_ctx, state->msg_ctx, NCALRPC, - state->ep.name, 0, + state->ep.name, cli_addr, NULL, sd, state->disconnect_fn); } @@ -932,11 +930,6 @@ static void dcerpc_ncalrpc_listener(struct tevent_context *ev, struct dcerpc_ncacn_conn { enum dcerpc_transport_t transport; - union { - const char *name; - uint16_t port; - } ep; - int sock; struct pipes_struct *p; @@ -965,7 +958,6 @@ static void dcerpc_ncacn_accept(struct tevent_context *ev_ctx, struct messaging_context *msg_ctx, enum dcerpc_transport_t transport, const char *name, - uint16_t port, struct tsocket_address *cli_addr, struct tsocket_address *srv_addr, int s, @@ -1029,8 +1021,6 @@ static void dcerpc_ncacn_accept(struct tevent_context *ev_ctx, switch (transport) { case NCACN_IP_TCP: - ncacn_conn->ep.port = port; - pipe_name = tsocket_address_string(ncacn_conn->client, ncacn_conn); if (pipe_name == NULL) { @@ -1050,13 +1040,6 @@ static void dcerpc_ncacn_accept(struct tevent_context *ev_ctx, } } case NCACN_NP: - ncacn_conn->ep.name = talloc_strdup(ncacn_conn, name); - if (ncacn_conn->ep.name == NULL) { - close(s); - talloc_free(ncacn_conn); - return; - } - pipe_name = talloc_strdup(ncacn_conn, name); if (pipe_name == NULL) { |