diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2014-02-20 14:52:41 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2014-02-21 06:40:54 +0100 |
commit | d2c5f6582515362328b33b2a331a17e141ef0d40 (patch) | |
tree | c50123bfed852241aaa318c65956c1587188924a /net/key/af_key.c | |
parent | 1a1ccc96abb2ed9b8fbb71018e64b97324caef53 (diff) | |
download | op-kernel-dev-d2c5f6582515362328b33b2a331a17e141ef0d40.zip op-kernel-dev-d2c5f6582515362328b33b2a331a17e141ef0d40.tar.gz |
pfkey: fix SADB_X_EXT_FILTER length check
This patch fixes commit d3623099d350 ("ipsec: add support of limited SA dump").
sadb_ext_min_len array should be updated with the new type (SADB_X_EXT_FILTER).
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/key/af_key.c')
-rw-r--r-- | net/key/af_key.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index f0879c1..a50d979 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c @@ -365,6 +365,7 @@ static const u8 sadb_ext_min_len[] = { [SADB_X_EXT_NAT_T_OA] = (u8) sizeof(struct sadb_address), [SADB_X_EXT_SEC_CTX] = (u8) sizeof(struct sadb_x_sec_ctx), [SADB_X_EXT_KMADDRESS] = (u8) sizeof(struct sadb_x_kmaddress), + [SADB_X_EXT_FILTER] = (u8) sizeof(struct sadb_x_filter), }; /* Verify sadb_address_{len,prefixlen} against sa_family. */ |