gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-merchant] branch master updated: work on #5092, do n


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: work on #5092, do not assert if instance unknown
Date: Sat, 09 Sep 2017 22:22:44 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 155966b  work on #5092, do not assert if instance unknown
155966b is described below

commit 155966b731904f4979c51e0d0bd690d65c881042
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Sep 9 22:22:42 2017 +0200

    work on #5092, do not assert if instance unknown
---
 src/backend/taler-merchant-httpd_proposal.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_proposal.c 
b/src/backend/taler-merchant-httpd_proposal.c
index ae0c3dc..4cb6dc9 100644
--- a/src/backend/taler-merchant-httpd_proposal.c
+++ b/src/backend/taler-merchant-httpd_proposal.c
@@ -434,8 +434,10 @@ MH_handler_proposal_lookup (struct TMH_RequestHandler *rh,
                                            "instance");
 
   mi = TMH_lookup_instance (instance);
-  GNUNET_assert (NULL != mi);
-
+  if (NULL == mi)
+    return TMH_RESPONSE_reply_not_found (connection,
+                                         TALER_EC_CONTRACT_INSTANCE_UNKNOWN,
+                                         "instance");
   order_id = MHD_lookup_connection_value (connection,
                                           MHD_GET_ARGUMENT_KIND,
                                           "order_id");

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]