diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-09-13 21:33:43 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-09-13 21:33:43 +0000 |
commit | d81c49161b093715e690f9aa82020f729a44be7a (patch) | |
tree | f2f944acb77c99e8901536e916d23e11c6d9358a /src | |
parent | 3ff4b22bc149f3c5e89c21cb3038b0fc9dc4378d (diff) | |
parent | cf12c9ca26e4388e383f1aa3c1558d61eda96777 (diff) | |
download | liberasurecode-d81c49161b093715e690f9aa82020f729a44be7a.tar.gz |
Merge "flat_xor_hd: better validate args"
Diffstat (limited to 'src')
-rw-r--r-- | src/builtin/xor_codes/xor_hd_code.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/builtin/xor_codes/xor_hd_code.c b/src/builtin/xor_codes/xor_hd_code.c index 5c4d052..9e41ad1 100644 --- a/src/builtin/xor_codes/xor_hd_code.c +++ b/src/builtin/xor_codes/xor_hd_code.c @@ -664,7 +664,7 @@ xor_code_t* init_xor_hd_code(int k, int m, int hd) if (k <= 10 && k >= 5) { is_valid = 1; } - } else if (m == 3) { + } else if (m == 3 && k == 3) { is_valid = 1; } } |