summaryrefslogtreecommitdiff
path: root/modules/m_challenge.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_challenge.c')
-rw-r--r--modules/m_challenge.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/m_challenge.c b/modules/m_challenge.c
index 7e673cd..f080b84 100644
--- a/modules/m_challenge.c
+++ b/modules/m_challenge.c
@@ -164,12 +164,14 @@ m_challenge(struct Client *client_p, struct Client *source_p,
}
}
- if (!generate_challenge(&challenge, &(source_p->localClient->response),
+ if (!generate_challenge(&challenge, &source_p->localClient->response,
conf->rsa_public_key))
+ {
sendto_one(source_p, form_str(RPL_RSACHALLENGE),
me.name, source_p->name, challenge);
+ source_p->localClient->auth_oper = xstrdup(conf->name);
+ }
- source_p->localClient->auth_oper = xstrdup(conf->name);
MyFree(challenge);
return 0;
}