X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=93fe23ea1692053309204c6f3dab93a31ae02166;hp=2109cd4d7328d8af9fe0ef638141c7a622c714ca;hb=5a132550deb58473285e5f91705d286aef47be71;hpb=08aabbf9317806bc50a9a6693ca866c8936ce26b diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 2109cd4d..93fe23ea 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -243,7 +243,7 @@ bool send_challenge(connection_t *c) { cp(); if(!c->hischallenge) - c->hischallenge = xmalloc(len); + c->hischallenge = xrealloc(c->hischallenge, len); /* Copy random data to the buffer */