diff options
| author | Anton <anton@picapica> | 2021-07-10 02:54:18 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2021-07-10 02:54:18 +0400 |
| commit | f3e70e541ef32a0c2b7eba226e5040de03bb8d9c (patch) | |
| tree | 2b3512b3c5b7a876ad078f4198c6ef8268453383 | |
| parent | 16508b609a8f45f16fd9161fb79b20b3e8b2056f (diff) | |
| download | pica-pica-f3e70e541ef32a0c2b7eba226e5040de03bb8d9c.tar.gz pica-pica-f3e70e541ef32a0c2b7eba226e5040de03bb8d9c.zip | |
pica-node: fix displaying ID of node being searched for
| -rw-r--r-- | PICA_node.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/PICA_node.c b/PICA_node.c index 7adfa91..4a59102 100644 --- a/PICA_node.c +++ b/PICA_node.c @@ -486,13 +486,12 @@ unsigned int procmsg_CONNREQOUTG(unsigned char* buf, unsigned int size, void* pt struct PICA_proto_msg *mp; i = (struct client *)ptr; + callee_id = buf + 2; char caller_id_buf[2 * PICA_ID_SIZE], callee_id_buf[2 * PICA_ID_SIZE]; PICA_debug1("received CONNREQOUTG from %s\n searching for %s", PICA_id_to_base64(i->id, caller_id_buf), PICA_id_to_base64(callee_id, callee_id_buf)); - callee_id = buf + 2; - if ((o = client_tree_search(callee_id))) { if (cclink_list_search(i->id, callee_id)) |
