Skip to content

Commit

Permalink
Fix csd_wrapper handling for non-UTF8 locales
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jul 31, 2014
1 parent 82c5a37 commit 541f4cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http.c
Expand Up @@ -772,7 +772,8 @@ static int run_csd_script(struct openconnect_info *vpninfo, char *buf, int bufle
the NM tool and the various cookieonly modes. */
dup2(2, 1);
if (vpninfo->csd_wrapper)
csd_argv[i++] = vpninfo->csd_wrapper;
csd_argv[i++] = openconnect_utf8_to_legacy(vpninfo,
vpninfo->csd_wrapper);
csd_argv[i++] = fname;
csd_argv[i++] = (char *)"-ticket";
if (asprintf(&csd_argv[i++], "\"%s\"", vpninfo->csd_ticket) == -1)
Expand Down

0 comments on commit 541f4cc

Please sign in to comment.