X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=net%2Fxfrm%2Fxfrm_user.c;fp=net%2Fxfrm%2Fxfrm_user.c;h=963222e89dbe79d36314919fcdd53a90d53794cd;hp=005c73ba45245684719d6a8420899c82f606bd7c;hb=27558df8159c056fb5d84511b4aef3381cc93242;hpb=2b666024123b0ba131d4fb2c3f7584ceb41feee6 diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 005c73ba4524..963222e89dbe 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -1719,6 +1719,7 @@ static int build_aevent(struct sk_buff *skb, struct xfrm_state *x, const struct return -EMSGSIZE; id = nlmsg_data(nlh); + memset(&id->sa_id, 0, sizeof(id->sa_id)); memcpy(&id->sa_id.daddr, &x->id.daddr,sizeof(x->id.daddr)); id->sa_id.spi = x->id.spi; id->sa_id.family = x->props.family;