Close service pipe in case of startup error

Without this the service will continue to wait for input from GUI
and log pipe read errors to the event log.
Also fix a typo in the error messgae shown.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
pull/118/head
Selva Nair 2017-01-14 22:23:58 -05:00
parent 5af421861d
commit d662991d13
2 changed files with 2 additions and 1 deletions

View File

@ -1551,6 +1551,7 @@ StartOpenVPN(connection_t *c)
if ( !AuthorizeConfig(c))
{
CloseHandle(c->exit_event);
CloseServiceIO(&c->iserv);
goto out;
}

View File

@ -270,7 +270,7 @@ BEGIN
IDS_ERR_CONFIG_TRY_AUTHORIZE "Starting this connection (%s) requires membership in "\
"""%s"" group.\n\n"\
"Do you want to add yourself to this group?\n"\
"This action may prompt for administrtaive password or consent."
"This action may prompt for administrative password or consent."
IDS_NFO_CONFIG_AUTH_PENDING "Starting this connection (%s) requires membership in "\
"""%s"" group.\n\n"\
"Please complete the previous authorization dialog."