r8593: register the rpc server with irpc
[sfrench/samba-autobuild/.git] / source4 / rpc_server / dcerpc_sock.c
index 5bba948c088039eeb5b8bc1c9d046b3d5aa62bc0..cf3ce3cf7e3d704a6f44a96506b6c01840436a81 100644 (file)
@@ -29,6 +29,7 @@
 #include "lib/events/events.h"
 #include "rpc_server/dcerpc_server.h"
 #include "smbd/service_stream.h"
+#include "lib/messaging/irpc.h"
 
 struct dcesrv_socket_context {
        const struct dcesrv_endpoint *endpoint;
@@ -77,6 +78,8 @@ static void dcesrv_sock_accept(struct stream_connection *srv_conn)
 
        srv_conn->private = dcesrv_conn;
 
+       irpc_add_name(srv_conn->msg_ctx, "rpc_server");
+
        return; 
 }