]> jfr.im git - solanum.git/blobdiff - modules/m_challenge.c
m_info: Correct description of general::client_exit like in example confs.
[solanum.git] / modules / m_challenge.c
index 9a00607a4b0789020a05e58cc2e36023b84f9a07..68070df7d3856b0d7509b1600d5d85fb4ba0741f 100644 (file)
@@ -143,7 +143,8 @@ m_challenge(struct Client *client_p, struct Client *source_p, int parc, const ch
                        return 0;                       
                }
 
-               b_response = rb_base64_decode((const unsigned char *)++parv[1], strlen(parv[1]), &len);
+               parv[1]++;
+               b_response = rb_base64_decode((const unsigned char *)parv[1], strlen(parv[1]), &len);
 
                if(len != SHA_DIGEST_LENGTH ||
                   memcmp(source_p->localClient->challenge, b_response, SHA_DIGEST_LENGTH))
@@ -243,7 +244,7 @@ m_challenge(struct Client *client_p, struct Client *source_p, int parc, const ch
                {
                        sendto_one_numeric(source_p, ERR_NOOPERHOST, form_str(ERR_NOOPERHOST));
                        ilog(L_FOPER, "FAILED OPER (%s) by (%s!%s@%s) (%s) -- client certificate fingerprint mismatch",
-                            name, source_p->name,
+                            parv[1], source_p->name,
                             source_p->username, source_p->host, source_p->sockhost);
 
                        if(ConfigFileEntry.failed_oper_notice)