summaryrefslogtreecommitdiffstats
path: root/src/plug-nis.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plug-nis.c')
-rw-r--r--src/plug-nis.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/plug-nis.c b/src/plug-nis.c
index a3aa8c1..a1bdf89 100644
--- a/src/plug-nis.c
+++ b/src/plug-nis.c
@@ -102,19 +102,19 @@ plugin_startup(Slapi_PBlock *pb)
if (state->pmap_client_socket != -1) {
/* Try to kick off any other NIS servers on the local box. */
portmap_unregister(plugin_description.spd_id,
- state->pmap_client_socket,
+ &state->pmap_client_socket, 0,
YPPROG, YPVERS,
AF_INET6, IPPROTO_TCP, 0);
portmap_unregister(plugin_description.spd_id,
- state->pmap_client_socket,
+ &state->pmap_client_socket, 0,
YPPROG, YPVERS,
AF_INET6, IPPROTO_UDP, 0);
portmap_unregister(plugin_description.spd_id,
- state->pmap_client_socket,
+ &state->pmap_client_socket, 0,
YPPROG, YPVERS,
AF_INET, IPPROTO_TCP, 0);
portmap_unregister(plugin_description.spd_id,
- state->pmap_client_socket,
+ &state->pmap_client_socket, 0,
YPPROG, YPVERS,
AF_INET, IPPROTO_UDP, 0);
/* Register our listening ports. */
@@ -134,7 +134,8 @@ plugin_startup(Slapi_PBlock *pb)
break;
}
if (!portmap_register(plugin_description.spd_id,
- state->pmap_client_socket,
+ &state->pmap_client_socket,
+ state->listener[i].port,
YPPROG, YPVERS,
state->listener[i].pf,
protocol,
@@ -153,7 +154,8 @@ plugin_startup(Slapi_PBlock *pb)
* register for them, too. */
if (state->listener[i].pf == AF_INET6) {
portmap_register(plugin_description.spd_id,
- state->pmap_client_socket,
+ &state->pmap_client_socket,
+ state->listener[i].port,
YPPROG, YPVERS,
AF_INET,
protocol,
@@ -190,14 +192,16 @@ plugin_shutdown(Slapi_PBlock *pb)
break;
}
portmap_unregister(plugin_description.spd_id,
- state->pmap_client_socket,
+ &state->pmap_client_socket,
+ state->listener[i].port,
YPPROG, YPVERS,
state->listener[i].pf,
protocol,
state->listener[i].port);
if (state->listener[i].pf == AF_INET6) {
portmap_unregister(plugin_description.spd_id,
- state->pmap_client_socket,
+ &state->pmap_client_socket,
+ state->listener[i].port,
YPPROG, YPVERS,
AF_INET,
protocol,