Commit 2f0f0f0d authored by Daniel Lenski's avatar Daniel Lenski

Merge branch 'bugfix_MR_143' into 'master'

bugfix for !143

See merge request openconnect/openconnect!153
parents 6bcdf4e3 dc1f764d
......@@ -328,6 +328,9 @@ static int parse_login_xml(struct openconnect_info *vpninfo, xmlNode *xml_node,
while (xml_node && xml_node->type != XML_ELEMENT_NODE)
xml_node = xml_node->next;
/* XX: argument 0 is unknown so we reuse this for extra arguments */
arg = &gp_login_args[(argn < gp_login_nargs) ? argn : 0];
if (!xml_node)
value = NULL;
else if (!xmlnode_get_val(xml_node, "argument", &value)) {
......@@ -348,9 +351,6 @@ static int parse_login_xml(struct openconnect_info *vpninfo, xmlNode *xml_node,
} else
goto err_out;
/* XX: argument 0 is unknown so we reuse this for extra arguments */
arg = &gp_login_args[(argn < gp_login_nargs) ? argn : 0];
if (arg->unknown && value) {
unknown_args++;
vpn_progress(vpninfo, PRG_ERR,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment