diff options
author | Simon Glass <sjg@chromium.org> | 2021-07-05 16:32:56 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-07-21 10:27:34 -0600 |
commit | 1ac9c4cef521c5c5fd6591e83acf9728b167aaee (patch) | |
tree | 58dd6e59fd344cce99e0811e7829378e1c62cffc /common/image-fit.c | |
parent | 1f618d528e234d2b7b0047750284dd531f5d718f (diff) | |
download | u-boot-1ac9c4cef521c5c5fd6591e83acf9728b167aaee.tar.gz u-boot-1ac9c4cef521c5c5fd6591e83acf9728b167aaee.tar.bz2 u-boot-1ac9c4cef521c5c5fd6591e83acf9728b167aaee.zip |
image: Allow @ in node names when not using signatures
If signature verification is not in use we don't need to worry about
the risk of using @ in node names. Update fit_image_verify() to allow
it if the function is not enabled.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/image-fit.c')
-rw-r--r-- | common/image-fit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c index 8e23d51cf2..28bd8e78c7 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1377,7 +1377,7 @@ int fit_image_verify(const void *fit, int image_noffset) size_t size; char *err_msg = ""; - if (strchr(name, '@')) { + if (IS_ENABLED(CONFIG_FIT_SIGNATURE) && strchr(name, '@')) { /* * We don't support this since libfdt considers names with the * name root but different @ suffix to be equal |