diff --git a/sys/rpc/rpcsec_tls/rpctls_impl.c.sav b/sys/rpc/rpcsec_tls/rpctls_impl.c.upcall --- a/sys/rpc/rpcsec_tls/rpctls_impl.c.sav +++ b/sys/rpc/rpcsec_tls/rpctls_impl.c.upcall @@ -257,8 +257,10 @@ /* First, do the AUTH_TLS NULL RPC. */ memset(&ext, 0, sizeof(ext)); ext.rc_auth = authtls_create(); + KRPC_CURVNET_SET(vnet0); stat = clnt_call_private(newclient, &ext, NULLPROC, (xdrproc_t)xdr_void, NULL, (xdrproc_t)xdr_void, NULL, (struct timeval){ .tv_sec = 30 }); + KRPC_CURVNET_RESTORE(); AUTH_DESTROY(ext.rc_auth); if (stat == RPC_AUTHERROR) return (stat);