chiark / gitweb /
correct eclient for new hashes
authorRichard Kettlewell <rjk@greenend.org.uk>
Tue, 2 Oct 2007 10:25:30 +0000 (11:25 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Tue, 2 Oct 2007 10:25:30 +0000 (11:25 +0100)
lib/eclient.c

index 766167958a16a845469ad7539d7fb201f7cc1cba..3faf2592efbff0e8d06795f232cd462e84db195f 100644 (file)
@@ -520,7 +520,7 @@ static void authbanner_opcallback(disorder_eclient *c,
     algo = *rvec++;
     --nrvec;
   }
-  nonce = unhex(c->line +  4, &nonce_len);
+  nonce = unhex(rvec[0], &nonce_len);
   res = authhash(nonce, nonce_len, config->password, algo);
   if(!res) {
     protocol_error(c, op, c->rc, "%s: unknown authentication algorithm '%s'",