X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=1fb37fcfa95eacb87bd713e0ea2feabd8463dd5f;hb=76165488f8201a59e649b4eec02ee31398b3fb92;hp=46bb6e645d897665ee3d100ca779a68340e0b4de;hpb=54892b2e3efcbbbd65b26a32f487829bbb8d787c;p=meshlink diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 46bb6e64..1fb37fcf 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -207,7 +207,7 @@ bool metakey_h(connection_t *c, char *request) { /* Decrypt the meta key */ if(!rsa_private_decrypt(&myself->connection->rsa, enckey, len, key)) { - logger(LOG_ERR, _("Error during encryption of meta key for %s (%s)"), c->name, c->hostname); + logger(LOG_ERR, _("Error during decryption of meta key for %s (%s)"), c->name, c->hostname); return false; } @@ -335,6 +335,7 @@ bool chal_reply_h(connection_t *c, char *request) { */ free(c->hischallenge); + c->hischallenge = NULL; c->allow_request = ACK; return send_ack(c);