]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
schannel_verify: Fix alt names manual verify for UNICODE builds
authorJay Satiro <raysatiro@yahoo.com>
Mon, 13 Jan 2020 23:25:12 +0000 (18:25 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 13 Jan 2020 23:25:12 +0000 (18:25 -0500)
Follow-up to 29e40a6 from two days ago, which added that feature for
Windows 7 and earlier. The bug only occurred in same.

Ref: https://github.com/curl/curl/pull/4761

lib/vtls/schannel_verify.c

index 791bc0bb0bfeeba20fd284710c58ce389b1a26eb..e75132caddd23daf49c5e8346274366962890c49 100644 (file)
@@ -313,7 +313,7 @@ static DWORD cert_get_name_string(struct Curl_easy *data,
   CERT_ALT_NAME_INFO *alt_name_info = NULL;
   DWORD alt_name_info_size = 0;
   BOOL ret_val = FALSE;
-  char *current_pos = NULL;
+  LPTSTR current_pos = NULL;
   DWORD i;
 
   /* CERT_NAME_SEARCH_ALL_NAMES_FLAG is available from Windows 8 onwards. */