mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 16:44:20 +01:00
paymod: fix typo which can cause memory overrun.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
6ada56ca7c
commit
497b18ba33
@@ -1756,7 +1756,7 @@ static bool routehint_excluded(struct payment *p,
|
|||||||
* are suggesting we use it the other way. Very unlikely though! */
|
* are suggesting we use it the other way. Very unlikely though! */
|
||||||
for (size_t i = 0; i < tal_count(routehint); i++) {
|
for (size_t i = 0; i < tal_count(routehint); i++) {
|
||||||
const struct route_info *r = &routehint[i];
|
const struct route_info *r = &routehint[i];
|
||||||
for (size_t j=0; tal_count(nodes); j++)
|
for (size_t j = 0; j < tal_count(nodes); j++)
|
||||||
if (node_id_eq(&r->pubkey, &nodes[j]))
|
if (node_id_eq(&r->pubkey, &nodes[j]))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user