Skip to content

Commit

Permalink
Fix some arguments missing dup_config_arg()
Browse files Browse the repository at this point in the history
These weren't getting convert to UTF-8.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jul 31, 2014
1 parent 7a67a66 commit b504080
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.c
Expand Up @@ -1071,16 +1071,16 @@ int main(int argc, char **argv)
authgroup = keep_config_arg();
break;
case 'C':
vpninfo->cookie = strdup(config_arg);
vpninfo->cookie = dup_config_arg();
break;
case 'c':
vpninfo->cert = strdup(config_arg);
vpninfo->cert = dup_config_arg();
break;
case 'e':
vpninfo->cert_expire_warning = 86400 * atoi(config_arg);
break;
case 'k':
vpninfo->sslkey = strdup(config_arg);
vpninfo->sslkey = dup_config_arg();
break;
case 'd':
vpninfo->deflate = 1;
Expand Down Expand Up @@ -1145,7 +1145,7 @@ int main(int argc, char **argv)
break;
case 'u':
free(username);
username = strdup(config_arg);
username = dup_config_arg();
break;
case OPT_DISABLE_IPV6:
vpninfo->disable_ipv6 = 1;
Expand Down Expand Up @@ -1179,7 +1179,7 @@ int main(int argc, char **argv)
break;
case OPT_USERAGENT:
free(vpninfo->useragent);
vpninfo->useragent = strdup(config_arg);
vpninfo->useragent = dup_config_arg();
break;
case OPT_FORCE_DPD:
openconnect_set_dpd(vpninfo, atoi(config_arg));
Expand Down

0 comments on commit b504080

Please sign in to comment.