X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=8d4dfb939eb881824e3cdd96e739f4c5190a4aca;hp=cf6b26f2d4ad3f915c6532c93cf421769309281e;hb=79e46d08a46f2fef2ee4e8eac7ba487007160564;hpb=4ce4af4c712c80d08630767ec34787253da1021b diff --git a/src/protocol_auth.c b/src/protocol_auth.c index cf6b26f2..8d4dfb93 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -401,7 +401,7 @@ static void send_everything(connection_t *c) { bool ack_h(connection_t *c, char *request) { char hisport[MAX_STRING_SIZE]; - char *hisaddress, *dummy; + char *hisaddress; int weight, mtu; uint32_t options; node_t *n; @@ -479,10 +479,9 @@ bool ack_h(connection_t *c, char *request) { c->edge = new_edge(); c->edge->from = myself; c->edge->to = n; - sockaddr2str(&c->address, &hisaddress, &dummy); + sockaddr2str(&c->address, &hisaddress, NULL); c->edge->address = str2sockaddr(hisaddress, hisport); free(hisaddress); - free(dummy); c->edge->weight = (weight + c->estimated_weight) / 2; c->edge->connection = c; c->edge->options = c->options;