Re: [PATCH] xfrm: state: fix potential null pointer dereference on afinfo

2017-01-16 Thread Steffen Klassert
On Fri, Jan 13, 2017 at 02:07:03PM +, Colin King wrote: > From: Colin Ian King > > afinfo is being null checked before a call afinfo->init_tempsel > so afinfo may be potentially null. ifinfo may still be null in > the case were it is not updated when family == tmpl->encap_family, > hence we m

[PATCH] xfrm: state: fix potential null pointer dereference on afinfo

2017-01-13 Thread Colin King
From: Colin Ian King afinfo is being null checked before a call afinfo->init_tempsel so afinfo may be potentially null. ifinfo may still be null in the case were it is not updated when family == tmpl->encap_family, hence we may hit a null pointer dereference in the call to afinfo->init_temprop.