correct error codes
authorDr. Stephen Henson <steve@openssl.org>
Wed, 6 Jan 2010 18:02:07 +0000 (18:02 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 6 Jan 2010 18:02:07 +0000 (18:02 +0000)
ssl/d1_clnt.c
ssl/d1_srvr.c

index 668475c2a2893b907a088ee29ca37b0c2016b2ca..59cb3daedcca80cf44ddccef37f9298131e0af39 100644 (file)
@@ -695,7 +695,7 @@ int dtls1_client_hello(SSL *s)
 #ifndef OPENSSL_NO_TLSEXT
                if ((p = ssl_add_clienthello_tlsext(s, p, buf+SSL3_RT_MAX_PLAIN_LENGTH)) == NULL)
                        {
-                       SSLerr(SSL_F_SSL3_CLIENT_HELLO,ERR_R_INTERNAL_ERROR);
+                       SSLerr(SSL_F_DTLS1_CLIENT_HELLO,ERR_R_INTERNAL_ERROR);
                        goto err;
                        }
 #endif         
index e4e255ddaafa45e8e779ca9d644765fe27629a8e..748bd86af467545d2abfe77cf7448be094f1df84 100644 (file)
@@ -795,7 +795,7 @@ int dtls1_send_server_hello(SSL *s)
 #ifndef OPENSSL_NO_TLSEXT
                if ((p = ssl_add_serverhello_tlsext(s, p, buf+SSL3_RT_MAX_PLAIN_LENGTH)) == NULL)
                        {
-                       SSLerr(SSL_F_SSL3_SEND_SERVER_HELLO,ERR_R_INTERNAL_ERROR);
+                       SSLerr(SSL_F_DTLS1_SEND_SERVER_HELLO,ERR_R_INTERNAL_ERROR);
                        return -1;
                        }
 #endif