diff options
author | Jacob Smith <jake.smith@hdfgroup.org> | 2020-02-07 19:40:07 (GMT) |
---|---|---|
committer | Jacob Smith <jake.smith@hdfgroup.org> | 2020-02-07 19:40:07 (GMT) |
commit | 3aeb449b43bcb38d0e61c6a7a6b1dacfc2a4b935 (patch) | |
tree | 3d5ce6cc567b263975663a08fdd935f030dbf852 /src | |
parent | 233a8bb8a9cebba6fd06d2afd81ec4f13d92781b (diff) | |
download | hdf5-3aeb449b43bcb38d0e61c6a7a6b1dacfc2a4b935.zip hdf5-3aeb449b43bcb38d0e61c6a7a6b1dacfc2a4b935.tar.gz hdf5-3aeb449b43bcb38d0e61c6a7a6b1dacfc2a4b935.tar.bz2 |
Fix improper signing key null check. (HDFFV-11015)
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FDs3comms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5FDs3comms.c b/src/H5FDs3comms.c index f08e9d5..d9d4c88 100644 --- a/src/H5FDs3comms.c +++ b/src/H5FDs3comms.c @@ -1202,7 +1202,7 @@ H5FD_s3comms_s3r_open(const char *url, if ((region != NULL && *region != '\0') || (id != NULL && *id != '\0') || - (signing_key != NULL && *signing_key != '\0')) + (signing_key != NULL)) { /* if one exists, all three must exist */ @@ -1214,7 +1214,7 @@ H5FD_s3comms_s3r_open(const char *url, HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "secret id cannot be null.\n"); } - if (signing_key == NULL || signing_key[0] == '\0') { + if (signing_key == NULL) { HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "signing key cannot be null.\n"); } |