[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: Fix potential NULL derefere
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: Fix potential NULL dereference warning. |
Date: |
Fri, 05 Jan 2018 13:55:45 +0100 |
This is an automated email from the git hooks/post-receive script.
arny pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 48fc70932 Fix potential NULL dereference warning.
48fc70932 is described below
commit 48fc70932f0074447d2ab821f2babb5bfe754a1e
Author: anryko <address@hidden>
AuthorDate: Fri Jan 5 13:55:28 2018 +0100
Fix potential NULL dereference warning.
---
src/set/set_api.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/set/set_api.c b/src/set/set_api.c
index 1d0d00b44..cefc6734a 100644
--- a/src/set/set_api.c
+++ b/src/set/set_api.c
@@ -695,6 +695,7 @@ GNUNET_SET_add_element (struct GNUNET_SET_Handle *set,
"adding element of type %u to set %p\n",
(unsigned int) element->element_type,
set);
+ GNUNET_assert (NULL != set);
if (GNUNET_YES == set->invalid)
{
if (NULL != cont)
@@ -772,6 +773,7 @@ GNUNET_SET_destroy (struct GNUNET_SET_Handle *set)
/* destroying set while iterator is active is currently
not supported; we should expand the API to allow
clients to explicitly cancel the iteration! */
+ GNUNET_assert (NULL != set);
if ( (NULL != set->ops_head) ||
(NULL != set->iterator) ||
(GNUNET_SYSERR == set->destroy_requested) )
@@ -1124,11 +1126,12 @@ GNUNET_SET_commit (struct GNUNET_SET_OperationHandle
*oh,
{
if (NULL != oh->set)
{
- /* Some other set was already commited for this
+ /* Some other set was already committed for this
* operation, there is a logic bug in the client of this API */
GNUNET_break (0);
return GNUNET_OK;
}
+ GNUNET_assert (NULL != set);
if (GNUNET_YES == set->invalid)
return GNUNET_SYSERR;
LOG (GNUNET_ERROR_TYPE_DEBUG,
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: Fix potential NULL dereference warning.,
gnunet <=