git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
examples/fips_validation: fix null dereferences
[dpdk.git]
/
examples
/
fips_validation
/
fips_validation_tdes.c
diff --git
a/examples/fips_validation/fips_validation_tdes.c
b/examples/fips_validation/fips_validation_tdes.c
index
15ee434
..
2b262c9
100644
(file)
--- a/
examples/fips_validation/fips_validation_tdes.c
+++ b/
examples/fips_validation/fips_validation_tdes.c
@@
-212,6
+212,8
@@
writeback_tdes_hex_str(const char *key, char *dst, struct fips_val *val)
tmp_val.val = val->val + 8;
else if (strstr(key, KEY3_STR))
tmp_val.val = val->val + 16;
+ else
+ return -EINVAL;
return writeback_hex_str(key, dst, &tmp_val);
}