mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	ERR_NET_CONN_RESET can't happen with UDP
This commit is contained in:
		
							parent
							
								
									caecdaed25
								
							
						
					
					
						commit
						dc6a75a952
					
				@ -1326,12 +1326,6 @@ send_request:
 | 
				
			|||||||
                    ret = 0;
 | 
					                    ret = 0;
 | 
				
			||||||
                    goto close_notify;
 | 
					                    goto close_notify;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                case 0:
 | 
					 | 
				
			||||||
                case POLARSSL_ERR_NET_CONN_RESET:
 | 
					 | 
				
			||||||
                    printf( " connection was reset by peer\n" );
 | 
					 | 
				
			||||||
                    ret = 0;
 | 
					 | 
				
			||||||
                    goto reconnect;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                default:
 | 
					                default:
 | 
				
			||||||
                    printf( " ssl_read returned -0x%x\n", -ret );
 | 
					                    printf( " ssl_read returned -0x%x\n", -ret );
 | 
				
			||||||
                    goto exit;
 | 
					                    goto exit;
 | 
				
			||||||
 | 
				
			|||||||
@ -1875,12 +1875,6 @@ data_exchange:
 | 
				
			|||||||
                    ret = 0;
 | 
					                    ret = 0;
 | 
				
			||||||
                    goto close_notify;
 | 
					                    goto close_notify;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                case 0:
 | 
					 | 
				
			||||||
                case POLARSSL_ERR_NET_CONN_RESET:
 | 
					 | 
				
			||||||
                    printf( " connection was reset by peer\n" );
 | 
					 | 
				
			||||||
                        ret = POLARSSL_ERR_NET_CONN_RESET;
 | 
					 | 
				
			||||||
                        goto reset;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                default:
 | 
					                default:
 | 
				
			||||||
                    printf( " ssl_read returned -0x%x\n", -ret );
 | 
					                    printf( " ssl_read returned -0x%x\n", -ret );
 | 
				
			||||||
                    goto reset;
 | 
					                    goto reset;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user