9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Xiao-Yong Jin <meta.jxy@gmail.com>
To: 9front@9front.org
Subject: [9front] drawterm convM2A should return -m if form1M2B()<0 ?
Date: Fri, 25 Mar 2022 21:04:50 -0500	[thread overview]
Message-ID: <C63CA261-40B7-43A0-B257-C10D0BEC8403@gmail.com> (raw)

Do I understand it correctly?

diff --git a/libauthsrv/convM2A.c b/libauthsrv/convM2A.c
index 0da7865..5f7bd2f 100644
--- a/libauthsrv/convM2A.c
+++ b/libauthsrv/convM2A.c
@@ -23,7 +23,7 @@ convM2A(char *ap, int n, Authenticator *f, Ticket *t)
 			return -m;
 		memmove(buf, ap, m);
 		if(form1M2B((char*)buf, m, t->key) < 0)
-			return m;
+			return -m;
 	}
 	p = buf;
 	f->num = *p++;


             reply	other threads:[~2022-03-26  2:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-26  2:04 Xiao-Yong Jin [this message]
2022-03-26 22:01 ` cinap_lenrek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C63CA261-40B7-43A0-B257-C10D0BEC8403@gmail.com \
    --to=meta.jxy@gmail.com \
    --cc=9front@9front.org \
    --subject='Re: [9front] drawterm convM2A should return -m if form1M2B()<0 ?' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).