mirror of https://github.com/openssl/openssl.git
				
				
				
			Fix omitted selector handling.
The selector field could be omitted because it has a DEFAULT value. In this case *sfld == NULL (sfld can never be NULL). This was not noticed because this was never used in existing ASN.1 modules. Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
		
							parent
							
								
									2dca984bab
								
							
						
					
					
						commit
						7c46746bf2
					
				|  | @ -189,7 +189,7 @@ const ASN1_TEMPLATE *asn1_do_adb(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt, | |||
|     sfld = offset2ptr(*pval, adb->offset); | ||||
| 
 | ||||
|     /* Check if NULL */ | ||||
|     if (!sfld) { | ||||
|     if (*sfld == NULL) { | ||||
|         if (!adb->null_tt) | ||||
|             goto err; | ||||
|         return adb->null_tt; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue