commit 47e88c9e183fbea80785cbabdef8d32313c0838b
parent 4083fba76b8185d6e18594230b41de062f7729c6
Author: Florian Dold <florian@dold.me>
Date: Thu, 4 Nov 2021 23:03:41 +0100
fix truth upload idempotency check
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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)) );