core: rdp: reset rdp->nla in rdp_reset

This commit is contained in:
Kobi Mizrachi 2020-01-16 09:07:50 +02:00 committed by akallabeth
parent f0321a049d
commit 205b0fba7f

View File

@ -1857,11 +1857,13 @@ void rdp_reset(rdpRdp* rdp)
license_free(rdp->license); license_free(rdp->license);
transport_free(rdp->transport); transport_free(rdp->transport);
fastpath_free(rdp->fastpath); fastpath_free(rdp->fastpath);
nla_free(rdp->nla);
rdp->transport = transport_new(context); rdp->transport = transport_new(context);
rdp->license = license_new(rdp); rdp->license = license_new(rdp);
rdp->nego = nego_new(rdp->transport); rdp->nego = nego_new(rdp->transport);
rdp->mcs = mcs_new(rdp->transport); rdp->mcs = mcs_new(rdp->transport);
rdp->fastpath = fastpath_new(rdp); rdp->fastpath = fastpath_new(rdp);
rdp->nla = nla_new(rdp->instance, rdp->transport, rdp->settings);
rdp->transport->layer = TRANSPORT_LAYER_TCP; rdp->transport->layer = TRANSPORT_LAYER_TCP;
rdp->errorInfo = 0; rdp->errorInfo = 0;
rdp->deactivation_reactivation = 0; rdp->deactivation_reactivation = 0;