mirror of https://github.com/openssl/openssl.git
				
				
				
			tls_write_records_default(): Remove unused variable
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19284)
This commit is contained in:
		
							parent
							
								
									31fbf119f3
								
							
						
					
					
						commit
						3c9ffd0273
					
				|  | @ -1495,7 +1495,7 @@ int tls_write_records_default(OSSL_RECORD_LAYER *rl, | ||||||
|     size_t align = 0; |     size_t align = 0; | ||||||
|     SSL3_BUFFER *wb; |     SSL3_BUFFER *wb; | ||||||
|     SSL_SESSION *sess; |     SSL_SESSION *sess; | ||||||
|     size_t totlen = 0, len, wpinited = 0; |     size_t len, wpinited = 0; | ||||||
|     size_t j, prefix = 0; |     size_t j, prefix = 0; | ||||||
|     int using_ktls; |     int using_ktls; | ||||||
|     /* TODO(RECLAYER): REMOVE ME */ |     /* TODO(RECLAYER): REMOVE ME */ | ||||||
|  | @ -1625,7 +1625,6 @@ int tls_write_records_default(OSSL_RECORD_LAYER *rl, | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     totlen = 0; |  | ||||||
|     /* Clear our SSL3_RECORD structures */ |     /* Clear our SSL3_RECORD structures */ | ||||||
|     memset(wr, 0, sizeof(wr)); |     memset(wr, 0, sizeof(wr)); | ||||||
|     for (j = 0; j < numtempl + prefix; j++) { |     for (j = 0; j < numtempl + prefix; j++) { | ||||||
|  | @ -1679,7 +1678,6 @@ int tls_write_records_default(OSSL_RECORD_LAYER *rl, | ||||||
|         SSL3_RECORD_set_length(thiswr, thistempl->buflen); |         SSL3_RECORD_set_length(thiswr, thistempl->buflen); | ||||||
| 
 | 
 | ||||||
|         SSL3_RECORD_set_input(thiswr, (unsigned char *)thistempl->buf); |         SSL3_RECORD_set_input(thiswr, (unsigned char *)thistempl->buf); | ||||||
|         totlen += thistempl->buflen; |  | ||||||
| 
 | 
 | ||||||
|         /*
 |         /*
 | ||||||
|          * we now 'read' from thiswr->input, thiswr->length bytes into |          * we now 'read' from thiswr->input, thiswr->length bytes into | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue