mirror of https://github.com/openssl/openssl.git
				
				
				
			evp: fix coverity 1473381 - dereference after null check
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14589)
This commit is contained in:
		
							parent
							
								
									72ded6f2a9
								
							
						
					
					
						commit
						b6d1bd4eb8
					
				|  | @ -1512,7 +1512,13 @@ static int get_payload_group_name(enum state state, | |||
|         return 0; | ||||
|     } | ||||
| 
 | ||||
|     if (ctx->p2 != NULL) | ||||
|     /*
 | ||||
|      * Quietly ignoring unknown groups matches the behaviour on the provider | ||||
|      * side. | ||||
|      */ | ||||
|     if (ctx->p2 == NULL) | ||||
|         return 1; | ||||
| 
 | ||||
|     ctx->p1 = strlen(ctx->p2); | ||||
|     return default_fixup_args(state, translation, ctx); | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue