Skip to content

Commit 359cf9b

Browse files
committed
CDRIVER-3585 fix crl_file str conversion for schannel
1 parent 8e8ff55 commit 359cf9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libmongoc/src/mongoc/mongoc-secure-channel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ mongoc_secure_channel_setup_crl (
422422
MONGOC_WARNING ("Can't determine opt->crl_file length");
423423
return false;
424424
}
425-
str = (LPWSTR) bson_malloc0 (chars);
425+
str = (LPWSTR) bson_malloc0 (chars * sizeof (*str));
426426
MultiByteToWideChar (CP_ACP, 0, opt->crl_file, -1, str, chars);
427427

428428

0 commit comments

Comments
 (0)