diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-orders.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c index 5a10e449..20a50d23 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders.c +++ b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -400,15 +400,17 @@ execute_order (struct MHD_Connection *connection, "order:products"); } - if (! TALER_JSON_check_i18n (fulfillment_i18n)) + if ( (NULL != fulfillment_i18n) && + (! TALER_JSON_check_i18n (fulfillment_i18n)) ) { GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, TALER_EC_GENERIC_PARAMETER_MALFORMED, - "order:fulfillment_i18n"); + "order:fulfillment_message_i18n"); } - if (! TALER_JSON_check_i18n (summary_i18n)) + if ( (NULL != summary_i18n) && + (! TALER_JSON_check_i18n (summary_i18n)) ) { GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, |