diff options
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_peer.c | 2 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_tunnels.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_peer.c b/src/cadet/gnunet-service-cadet-new_peer.c index 8db375510..d9a87600b 100644 --- a/src/cadet/gnunet-service-cadet-new_peer.c +++ b/src/cadet/gnunet-service-cadet-new_peer.c | |||
@@ -1146,7 +1146,7 @@ GCP_iterate_paths (struct CadetPeer *cp, | |||
1146 | if (GNUNET_NO == | 1146 | if (GNUNET_NO == |
1147 | callback (callback_cls, | 1147 | callback (callback_cls, |
1148 | path, | 1148 | path, |
1149 | 1)) | 1149 | 0)) |
1150 | return ret; | 1150 | return ret; |
1151 | } | 1151 | } |
1152 | for (unsigned int i=0;i<cp->path_dll_length;i++) | 1152 | for (unsigned int i=0;i<cp->path_dll_length;i++) |
diff --git a/src/cadet/gnunet-service-cadet-new_tunnels.c b/src/cadet/gnunet-service-cadet-new_tunnels.c index ee1502cab..cbc1303d9 100644 --- a/src/cadet/gnunet-service-cadet-new_tunnels.c +++ b/src/cadet/gnunet-service-cadet-new_tunnels.c | |||
@@ -2416,6 +2416,7 @@ consider_path_cb (void *cls, | |||
2416 | struct EvaluationSummary es; | 2416 | struct EvaluationSummary es; |
2417 | struct CadetTConnection *ct; | 2417 | struct CadetTConnection *ct; |
2418 | 2418 | ||
2419 | GNUNET_assert (off < GCPP_get_length (path)); | ||
2419 | es.min_length = UINT_MAX; | 2420 | es.min_length = UINT_MAX; |
2420 | es.max_length = 0; | 2421 | es.max_length = 0; |
2421 | es.max_desire = 0; | 2422 | es.max_desire = 0; |