1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 03:32:24 +00:00

tt: ensure all versions of mapping can be deleted from portmap.

This commit is contained in:
Liang Chang 2022-03-25 15:24:31 -06:00
parent 2e69f83d33
commit 0797e9ca72

View file

@ -86,14 +86,14 @@ _Tt_rpc_server(int program, int version, int Rsocket, _Tt_auth &auth)
_Tt_rpc_server::
~_Tt_rpc_server()
{
#ifndef OPT_TLI
pmap_unset(_program, _version);
#else
for (int version = _version; version >= 1; version--) {
#ifndef OPT_TLI
pmap_unset(_program, version);
#else
rpcb_unset(_program, version, (netconfig *)0);
}
#endif // OPT_TLI
}
}
/*