summaryrefslogtreecommitdiff
path: root/lib/gnutls_alert.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2005-04-05 16:52:16 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2005-04-05 16:52:16 +0000
commit502bfb0a5a816e9e7523df280545d0f7a6b41c62 (patch)
tree49e25de053fd2213f6cd0f6af760aae87d288132 /lib/gnutls_alert.c
parent2f0a803824d8a09757c229387e9df8fc30fd25a2 (diff)
downloadgnutls-502bfb0a5a816e9e7523df280545d0f7a6b41c62.tar.gz
return unexpected_message alert in the case of a handshake unexpected message.
Diffstat (limited to 'lib/gnutls_alert.c')
-rw-r--r--lib/gnutls_alert.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gnutls_alert.c b/lib/gnutls_alert.c
index 4645a5da1c..977272d578 100644
--- a/lib/gnutls_alert.c
+++ b/lib/gnutls_alert.c
@@ -199,6 +199,7 @@ int gnutls_error_to_alert(int err, int *level)
_level = GNUTLS_AL_FATAL;
break;
case GNUTLS_E_UNEXPECTED_PACKET:
+ case GNUTLS_E_UNEXPECTED_HANDSHAKE_PACKET:
ret = GNUTLS_A_UNEXPECTED_MESSAGE;
_level = GNUTLS_AL_FATAL;
break;