diff options
Diffstat (limited to 'src/lib/libssl/d1_srvr.c')
-rw-r--r-- | src/lib/libssl/d1_srvr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libssl/d1_srvr.c b/src/lib/libssl/d1_srvr.c index fc475485ba..8fa75819bb 100644 --- a/src/lib/libssl/d1_srvr.c +++ b/src/lib/libssl/d1_srvr.c | |||
@@ -1182,8 +1182,7 @@ dtls1_send_server_key_exchange(SSL *s) | |||
1182 | POINT_CONVERSION_UNCOMPRESSED, | 1182 | POINT_CONVERSION_UNCOMPRESSED, |
1183 | NULL, 0, NULL); | 1183 | NULL, 0, NULL); |
1184 | 1184 | ||
1185 | encodedPoint = (unsigned char *) | 1185 | encodedPoint = malloc(encodedlen); |
1186 | malloc(encodedlen*sizeof(unsigned char)); | ||
1187 | 1186 | ||
1188 | bn_ctx = BN_CTX_new(); | 1187 | bn_ctx = BN_CTX_new(); |
1189 | if ((encodedPoint == NULL) || (bn_ctx == NULL)) { | 1188 | if ((encodedPoint == NULL) || (bn_ctx == NULL)) { |