X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=175aee0f28187291e23db4e330deff66a8efbafe;hb=cc0c35267f8fac4f82622ff73474ed1e2d3a1e36;hp=3fd80c47b944981a900f9409751bdec8bf00a907;hpb=76a3ada4eb4032172c3d780915a07680f9954d42;p=tinc diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 3fd80c47..175aee0f 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -83,10 +83,10 @@ static bool send_proxyrequest(connection_t *c) { s5req[i++] = 2; s5req[i++] = 1; s5req[i++] = strlen(proxyuser); - strcpy(s5req + i, proxyuser); + memcpy(s5req + i, proxyuser, strlen(proxyuser)); i += strlen(proxyuser); s5req[i++] = strlen(proxypass); - strcpy(s5req + i, proxypass); + memcpy(s5req + i, proxypass, strlen(proxypass)); i += strlen(proxypass); c->tcplen += 2; } else { @@ -626,9 +626,6 @@ bool ack_h(connection_t *c, const char *request) { c->options &= ~OPTION_CLAMP_MSS; } - if(c->protocol_minor > 0) - c->node->status.ecdh = true; - /* Activate this connection */ c->allow_request = ALL;