Init extensions in pre_connect stage.
Due to the client is parsing the args in pre_connect,
we should start loading the extensions after client parsing the args.
Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@canonical.com>
(cherry picked from commit 48ad5feb0a
)
Conflicts:
libfreerdp-core/rdp.c
This commit is contained in:
parent
eecb39b5a7
commit
69dd64c5b7
@ -35,8 +35,6 @@ boolean freerdp_connect(freerdp* instance)
|
||||
|
||||
rdp = instance->context->rdp;
|
||||
|
||||
extension_pre_connect(rdp->extension);
|
||||
|
||||
IFCALLRET(instance->PreConnect, status, instance);
|
||||
|
||||
if (status != true)
|
||||
@ -45,6 +43,9 @@ boolean freerdp_connect(freerdp* instance)
|
||||
return false;
|
||||
}
|
||||
|
||||
rdp->extension = extension_new(instance);
|
||||
extension_pre_connect(rdp->extension);
|
||||
|
||||
status = rdp_client_connect(rdp);
|
||||
|
||||
if (status)
|
||||
|
@ -878,7 +878,7 @@ rdpRdp* rdp_new(freerdp* instance)
|
||||
rdp->settings = settings_new((void*) instance);
|
||||
if (instance != NULL)
|
||||
instance->settings = rdp->settings;
|
||||
rdp->extension = extension_new(instance);
|
||||
|
||||
rdp->transport = transport_new(rdp->settings);
|
||||
rdp->license = license_new(rdp);
|
||||
rdp->input = input_new(rdp);
|
||||
|
Loading…
Reference in New Issue
Block a user