mirror of
https://github.com/0intro/conterm
synced 2025-02-16 13:54:35 +03:00
fix auth problem
This commit is contained in:
parent
faa1eca1d3
commit
276098f816
2
cpu.c
2
cpu.c
@ -623,7 +623,7 @@ p9any(int fd)
|
|||||||
auth.id = 0;
|
auth.id = 0;
|
||||||
convA2M(&auth, tbuf+TICKETLEN, t.key);
|
convA2M(&auth, tbuf+TICKETLEN, t.key);
|
||||||
|
|
||||||
if(write(fd, tbuf+1, TICKETLEN+AUTHENTLEN) != TICKETLEN+AUTHENTLEN)
|
if(write(fd, tbuf, TICKETLEN+AUTHENTLEN) != TICKETLEN+AUTHENTLEN)
|
||||||
fatal(1, "cannot send ticket and authenticator back in p9sk1");
|
fatal(1, "cannot send ticket and authenticator back in p9sk1");
|
||||||
|
|
||||||
if((n=readn(fd, tbuf, AUTHENTLEN)) != AUTHENTLEN ||
|
if((n=readn(fd, tbuf, AUTHENTLEN)) != AUTHENTLEN ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user