[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9678 - GNUnet/src/applications/dv/module
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9678 - GNUnet/src/applications/dv/module |
Date: |
Wed, 2 Dec 2009 21:20:44 +0100 |
Author: nevans
Date: 2009-12-02 21:20:44 +0100 (Wed, 02 Dec 2009)
New Revision: 9678
Modified:
GNUnet/src/applications/dv/module/dv.c
Log:
coverity issue resolved
Modified: GNUnet/src/applications/dv/module/dv.c
===================================================================
--- GNUnet/src/applications/dv/module/dv.c 2009-12-02 20:19:13 UTC (rev
9677)
+++ GNUnet/src/applications/dv/module/dv.c 2009-12-02 20:20:44 UTC (rev
9678)
@@ -628,6 +628,7 @@
original_sender = GNUNET_malloc (sizeof (GNUNET_PeerIdentity));
memcpy (original_sender, &ctx->neighbor_id_array[i].identity,
sizeof (GNUNET_PeerIdentity));
+ break;
}
}
}
@@ -686,8 +687,10 @@
if (stats != NULL)
stats->change (stat_dv_unknown_peer, 1);
}
-
- GNUNET_free_non_null (original_sender);
+ else
+ {
+ GNUNET_free (original_sender);
+ }
GNUNET_free (message_content);
return ret;
}
@@ -1087,7 +1090,7 @@
delete_neighbor (neighbor);
/* we must not continue iterating at this point since
'delete_neighbor' modified the tree and hence internal
- invariants of the iterator were likely broken!
+ invariants of the iterator were likely broken!
Besides, each neighbor should only appear once anyway... */
return GNUNET_NO;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9678 - GNUnet/src/applications/dv/module,
gnunet <=