summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-11-27 12:34:05 +0100
committerMatt Caswell <matt@openssl.org>2017-12-04 14:31:48 +0100
commit8e7677aeacea0657846df444553680fdd3391f8c (patch)
tree0adeef9c630d29941ad924046d8b52a7c0d0fe10 /ssl
parentFix the Boring tests following the SSLfatal() changes (diff)
downloadopenssl-8e7677aeacea0657846df444553680fdd3391f8c.tar.xz
openssl-8e7677aeacea0657846df444553680fdd3391f8c.zip
Update an error reason code to be ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED
The most likely explanation for us ending up at this point in the code is that we were called by the user application incorrectly - so use an appropriate error code. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4778)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/statem/statem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/statem/statem.c b/ssl/statem/statem.c
index fe348419cd..0cacc4acb7 100644
--- a/ssl/statem/statem.c
+++ b/ssl/statem/statem.c
@@ -443,7 +443,7 @@ static int state_machine(SSL *s, int server)
} else {
/* Error */
check_fatal(s, SSL_F_STATE_MACHINE);
- SSLerr(SSL_F_STATE_MACHINE, ERR_R_INTERNAL_ERROR);
+ SSLerr(SSL_F_STATE_MACHINE, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
goto end;
}
}