summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/rpc_server.c19
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) {