projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e24d83e
)
fix
author
Florian Dold
<florian.dold@gmail.com>
Thu, 24 Jan 2013 11:46:02 +0000
(11:46 +0000)
committer
Florian Dold
<florian.dold@gmail.com>
Thu, 24 Jan 2013 11:46:02 +0000
(11:46 +0000)
src/consensus/gnunet-consensus.c
patch
|
blob
|
history
diff --git
a/src/consensus/gnunet-consensus.c
b/src/consensus/gnunet-consensus.c
index 222ec3e9df7c6b224af2a85de23ef7cb4d29549b..a63575825f9898a020c67f91e5b193a99d8e8475 100644
(file)
--- a/
src/consensus/gnunet-consensus.c
+++ b/
src/consensus/gnunet-consensus.c
@@
-288,6
+288,11
@@
run (void *cls, char *const *args, const char *cfgfile,
{
static char *session_str = "gnunet-consensus/test";
+ if (num_peers < replication)
+ {
+ fprintf (stderr, "k must be <=n\n");
+ return;
+ }
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "running gnunet-consensus\n");