Rename pend_alert_msg -> pending_fatal_alert_msg
diff --git a/include/mbedtls/ssl.h b/include/mbedtls/ssl.h
index f613ff64..5a774aa 100644
--- a/include/mbedtls/ssl.h
+++ b/include/mbedtls/ssl.h
@@ -1235,7 +1235,7 @@
 {
     const mbedtls_ssl_config *conf; /*!< configuration information          */
 
-    unsigned char pend_alert_msg;
+    unsigned char pending_fatal_alert_msg;
 
     /*
      * Miscellaneous
diff --git a/include/mbedtls/ssl_internal.h b/include/mbedtls/ssl_internal.h
index 2f305e5..a86ec12 100644
--- a/include/mbedtls/ssl_internal.h
+++ b/include/mbedtls/ssl_internal.h
@@ -1736,14 +1736,14 @@
  * The check for pending alerts must be done manually. Currently,
  * it happens only during the handshake loop.
  *
- * This function must not be called multiple times without manually
- * inspecting and clearing ssl->pending_fatal_alert_msg in between.
+ * This function must not be called multiple times without
+ * manually inspecting and clearing ssl->pending_fatal_alert_msg in between.
  */
 MBEDTLS_ALWAYS_INLINE static inline void mbedtls_ssl_pend_fatal_alert(
     mbedtls_ssl_context *ssl,
     unsigned char message )
 {
-    ssl->pend_alert_msg = message;
+    ssl->pending_fatal_alert_msg = message;
 }
 
 #endif /* ssl_internal.h */
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index e37122f..2927974 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -7974,7 +7974,7 @@
     if( ( ret = ssl_handshake_init( ssl ) ) != 0 )
         goto error;
 
-    ssl->pend_alert_msg   = MBEDTLS_SSL_ALERT_MSG_NONE;
+    ssl->pending_fatal_alert_msg = MBEDTLS_SSL_ALERT_MSG_NONE;
 
     return( 0 );
 
@@ -9828,12 +9828,12 @@
         ret = mbedtls_ssl_handshake_server_step( ssl );
 #endif
 
-    if( ssl->pend_alert_msg != MBEDTLS_SSL_ALERT_MSG_NONE )
+    if( ssl->pending_fatal_alert_msg != MBEDTLS_SSL_ALERT_MSG_NONE )
     {
         mbedtls_ssl_send_alert_message( ssl,
                                         MBEDTLS_SSL_ALERT_LEVEL_FATAL,
-                                        ssl->pend_alert_msg );
-        ssl->pend_alert_msg   = MBEDTLS_SSL_ALERT_MSG_NONE;
+                                        ssl->pending_fatal_alert_msg );
+        ssl->pending_fatal_alert_msg   = MBEDTLS_SSL_ALERT_MSG_NONE;
     }
     return( ret );
 }