commit | b4ad86bf52469b26148c677cb59d8bc81f129cc2 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@sunset.davemloft.net> | Sun Dec 03 19:19:26 2006 -0800 |
committer | David S. Miller <davem@sunset.davemloft.net> | Sun Dec 03 19:19:26 2006 -0800 |
tree | cca839f49a02ced2dd79c559e57beabd74fe0216 | |
parent | 2b5f6dcce5bf94b9b119e9ed8d537098ec61c3d2 [diff] |
[XFRM] xfrm_user: Better validation of user templates. Since we never checked the ->family value of templates before, many applications simply leave it at zero. Detect this and fix it up to be the pol->family value. Also, do not clobber xp->family while reading in templates, that is not necessary. Signed-off-by: David S. Miller <davem@davemloft.net>