diff options
author | Florian Dold <florian@dold.me> | 2021-11-04 23:03:41 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-11-04 23:03:41 +0100 |
commit | 47e88c9e183fbea80785cbabdef8d32313c0838b (patch) | |
tree | f1469ed4ff315f3ded1a8e2c423c6abe5005cfa5 /src/backend | |
parent | 4083fba76b8185d6e18594230b41de062f7729c6 (diff) | |
download | anastasis-47e88c9e183fbea80785cbabdef8d32313c0838b.tar.gz anastasis-47e88c9e183fbea80785cbabdef8d32313c0838b.tar.bz2 anastasis-47e88c9e183fbea80785cbabdef8d32313c0838b.zip |
fix truth upload idempotency check
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/anastasis-httpd_truth_upload.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/anastasis-httpd_truth_upload.c b/src/backend/anastasis-httpd_truth_upload.c index 8eb410c..e4bce9c 100644 --- a/src/backend/anastasis-httpd_truth_upload.c +++ b/src/backend/anastasis-httpd_truth_upload.c @@ -813,8 +813,8 @@ AH_handler_truth_post ( ok = ( (xtruth_size == encrypted_truth_size) && (0 == strcmp (xmethod, type)) && - (0 == strcmp (truth_mime, - xtruth_mime)) && + (0 == strcmp (((NULL == truth_mime) ? "" : truth_mime), + ((NULL == xtruth_mime) ? "" : xtruth_mime))) && (0 == memcmp (xtruth, encrypted_truth, xtruth_size)) ); |