diff options
Diffstat (limited to 'ssl/d1_msg.c')
-rw-r--r-- | ssl/d1_msg.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ssl/d1_msg.c b/ssl/d1_msg.c index 96741efd7c..b215fee3a5 100644 --- a/ssl/d1_msg.c +++ b/ssl/d1_msg.c @@ -19,14 +19,13 @@ int dtls1_write_app_data_bytes(SSL *s, int type, const void *buf_, size_t len, if (i < 0) return i; if (i == 0) { - SSLerr(SSL_F_DTLS1_WRITE_APP_DATA_BYTES, - SSL_R_SSL_HANDSHAKE_FAILURE); + ERR_raise(ERR_LIB_SSL, SSL_R_SSL_HANDSHAKE_FAILURE); return -1; } } if (len > SSL3_RT_MAX_PLAIN_LENGTH) { - SSLerr(SSL_F_DTLS1_WRITE_APP_DATA_BYTES, SSL_R_DTLS_MESSAGE_TOO_BIG); + ERR_raise(ERR_LIB_SSL, SSL_R_DTLS_MESSAGE_TOO_BIG); return -1; } |