diff options
| author | Anton <anton@picapica.im> | 2026-11-11 05:41:35 +0400 |
|---|---|---|
| committer | Anton <anton@picapica.im> | 2026-11-11 05:41:35 +0400 |
| commit | 16d89ac0bf64122453b3730fafa46d54e278480d (patch) | |
| tree | 621531fd92f422e57c38355fe8f9456da39e5540 /PICA_node.c | |
| parent | 7a9961f2d19d81659d6066ca3db29abe7b2031cf (diff) | |
| download | pica-pica-16d89ac0bf64122453b3730fafa46d54e278480d.tar.gz pica-pica-16d89ac0bf64122453b3730fafa46d54e278480d.zip | |
pica-node: fix NODELISTREQ handler
Diffstat (limited to 'PICA_node.c')
| -rw-r--r-- | PICA_node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PICA_node.c b/PICA_node.c index 52ccf78..ec93776 100644 --- a/PICA_node.c +++ b/PICA_node.c @@ -956,7 +956,7 @@ unsigned int procmsg_NODELISTREQ(unsigned char* buf, unsigned int size, void* pt switch(nlp->addr_type) { case PICA_PROTO_NEWNODE_IPV4: - if ( PICA_PROTO_NODELISTREQ == buf[0] && + if ( PICA_PROTO_NODELISTREQ == buf[0] && n->node_addr && ((struct PICA_nodeaddr_ipv4*)nlp->node_addr)->addr == ((struct PICA_nodeaddr_ipv4*)n->node_addr)->addr && ((struct PICA_nodeaddr_ipv4*)nlp->node_addr)->port == ((struct PICA_nodeaddr_ipv4*)n->node_addr)->port ) break;//exclude requester's address |
