diff options
author | Jacob Smith <jake.smith@hdfgroup.org> | 2020-02-07 19:47:15 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:54 (GMT) |
commit | 3ef00a150d7085761be4e6e9826fe615df20e672 (patch) | |
tree | 8c314213eade4a00aa6f6e89262b0632bb46a5f7 | |
parent | 2a252eada1378420e2233ab29a6ec819aa8a54ba (diff) | |
download | hdf5-3ef00a150d7085761be4e6e9826fe615df20e672.zip hdf5-3ef00a150d7085761be4e6e9826fe615df20e672.tar.gz hdf5-3ef00a150d7085761be4e6e9826fe615df20e672.tar.bz2 |
Fix improper S3 signing key null check (HDFFV-11015).
-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"); } |