Fixed missing NULL set

This commit is contained in:
Armin Novak 2021-09-07 10:13:16 +02:00 committed by akallabeth
parent 56648a98f2
commit b41093be20
1 changed files with 9 additions and 0 deletions

View File

@ -1946,10 +1946,19 @@ BOOL rdp_reset(rdpRdp* rdp)
} }
mcs_free(rdp->mcs); mcs_free(rdp->mcs);
rdp->mcs = NULL;
nego_free(rdp->nego); nego_free(rdp->nego);
rdp->nego = NULL;
license_free(rdp->license); license_free(rdp->license);
rdp->license = NULL;
transport_free(rdp->transport); transport_free(rdp->transport);
rdp->transport = NULL;
fastpath_free(rdp->fastpath); fastpath_free(rdp->fastpath);
rdp->fastpath = NULL;
rdp->transport = transport_new(context); rdp->transport = transport_new(context);
if (rdp->transport) if (rdp->transport)