gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] 02/03: auction: check for empty pricelist


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 02/03: auction: check for empty pricelist
Date: Thu, 12 Jan 2017 20:18:41 +0100

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

mteich pushed a commit to branch master
in repository gnunet.

commit 9006be70fd75641136a5a230f613498d5082bb3d
Author: Markus Teich <address@hidden>
AuthorDate: Thu Jan 12 20:16:40 2017 +0100

    auction: check for empty pricelist
---
 src/auction/gnunet-auction-create.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/auction/gnunet-auction-create.c 
b/src/auction/gnunet-auction-create.c
index dc43f635e..a4c029572 100644
--- a/src/auction/gnunet-auction-create.c
+++ b/src/auction/gnunet-auction-create.c
@@ -113,6 +113,11 @@ run (void *cls,
                            "could not get `prices` array node from 
pricemap\n");
                goto fail;
        }
+       if (0 == json_array_size (parray))
+       {
+               GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "empty pricemap array\n");
+               goto fail;
+       }
        json_array_foreach (parray, i, pnode)
        {
                if (-1 == json_unpack_ex (pnode, &jerr, 0, "F", &cur))

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



reply via email to

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