diff options
Diffstat (limited to 'src/lib/libssl/d1_both.c')
-rw-r--r-- | src/lib/libssl/d1_both.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c index d62362e69a..8e2843625b 100644 --- a/src/lib/libssl/d1_both.c +++ b/src/lib/libssl/d1_both.c | |||
@@ -946,7 +946,7 @@ dtls1_add_cert_to_buf(BUF_MEM *buf, unsigned long *l, X509 *x) | |||
946 | unsigned char *p; | 946 | unsigned char *p; |
947 | 947 | ||
948 | n = i2d_X509(x, NULL); | 948 | n = i2d_X509(x, NULL); |
949 | if (!BUF_MEM_grow_clean(buf, (int)(n + (*l) + 3))) { | 949 | if (!BUF_MEM_grow_clean(buf, n + (*l) + 3)) { |
950 | SSLerr(SSL_F_DTLS1_ADD_CERT_TO_BUF, ERR_R_BUF_LIB); | 950 | SSLerr(SSL_F_DTLS1_ADD_CERT_TO_BUF, ERR_R_BUF_LIB); |
951 | return 0; | 951 | return 0; |
952 | } | 952 | } |