x->curlft.add_time = (unsigned long) xtime.tv_sec; x->km.state = XFRM_STATE_VALID; 
static struct xfrm_state *xfrm_state_construct(struct xfrm_usersa_info *p,					       struct rtattr **xfrma,					       int *errp){	struct xfrm_state *x = xfrm_state_alloc();	int err = -ENOMEM;	if (!x)		goto error_no_put;	copy_from_user_state(x, p);	if ((err = attach_one_algo(&x->aalg, &x->props.aalgo,				   xfrm_aalg_get_byname,				   xfrma[XFRMA_ALG_AUTH-1])))		goto error;	if ((err = attach_one_algo(&x->ealg, &x->props.ealgo,				   xfrm_ealg_get_byname,				   xfrma[XFRMA_ALG_CRYPT-1])))		goto error;	if ((err = attach_one_algo(&x->calg, &x->props.calgo,				   xfrm_calg_get_byname,				   xfrma[XFRMA_ALG_COMP-1])))		goto error;	if ((err = attach_encap_tmpl(&x->encap, xfrma[XFRMA_ENCAP-1])))		goto error;	err = -ENOENT;	x->type = xfrm_get_type(x->id.proto, x->props.family);	if (x->type == NULL)		goto error;	err = x->type->init_state(x, NULL);	if (err)		goto error;	x->curlft.add_time = (unsigned long) xtime.tv_sec;	x->km.state = XFRM_STATE_VALID;	x->km.seq = p->seq;	return x;error:	x->km.state = XFRM_STATE_DEAD;	xfrm_state_put(x);error_no_put:	*errp = err;	return NULL;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/72cb6962a91f2af9eef69a06198e1949c10259ae/xfrm_user.c/buggy/net/xfrm/xfrm_user.c