mirror of https://github.com/openssl/openssl.git
				
				
				
			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)
This commit is contained in:
		
							parent
							
								
									8e02e73d80
								
							
						
					
					
						commit
						8e7677aeac
					
				| 
						 | 
					@ -443,7 +443,7 @@ static int state_machine(SSL *s, int server)
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            /* Error */
 | 
					            /* Error */
 | 
				
			||||||
            check_fatal(s, SSL_F_STATE_MACHINE);
 | 
					            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;
 | 
					            goto end;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue