X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fprotocol.c;h=6aa3ac93b54cb432493347297b4c5d26aab35340;hb=b3e67d3dfa6409755be33f352b5a86fbb094a570;hp=eb7b3013a01e2f5cdf6c0777ca54fdb4793209e0;hpb=bb8ce8c6460403e9220d9f96eb0e6bd2a20d31f0;p=silc.git diff --git a/apps/silcd/protocol.c b/apps/silcd/protocol.c index eb7b3013..6aa3ac93 100644 --- a/apps/silcd/protocol.c +++ b/apps/silcd/protocol.c @@ -690,10 +690,10 @@ SILC_TASK_CALLBACK(silc_server_protocol_key_exchange) */ static int -silc_server_password_authentication(SilcServer server, char *remote_auth, - char *local_auth) +silc_server_password_authentication(SilcServer server, char *local_auth, + char *remote_auth) { - if (!remote_auth || !local_auth) + if (!remote_auth || !local_auth || strlen(local_auth) != strlen(remote_auth)) return FALSE; if (!memcmp(remote_auth, local_auth, strlen(local_auth)))