Skip to content

Commit 65fd6d6

Browse files
Chenjpmarkt-asf
authored andcommitted
Ensure buf size
Buf size correction.
1 parent 2f386b3 commit 65fd6d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

native/src/sslconf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ TCN_IMPLEMENT_CALL(jint, SSLConf, apply)(TCN_STDARGS, jlong cctx,
286286
* no matter what was given in the config.
287287
*/
288288
len = strlen(J2S(value)) + strlen(SSL_CIPHERS_ALWAYS_DISABLED) + 1;
289-
buf = malloc(len * sizeof(char *));
289+
buf = malloc(len * sizeof(char));
290290
if (buf == NULL) {
291291
tcn_Throw(e, "Could not allocate memory to adjust cipher string");
292292
return SSL_THROW_RETURN;

0 commit comments

Comments
 (0)