mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Don't shift version out of peerid, it is needed later.
This commit is contained in:
parent
abb4e9e2fa
commit
b0a99e85b6
2 changed files with 1 additions and 2 deletions
2
client.c
2
client.c
|
|
@ -596,7 +596,7 @@ client_dispatch_wait(struct imsg *imsg)
|
|||
|
||||
fprintf(stderr, "protocol version mismatch "
|
||||
"(client %d, server %u)\n", PROTOCOL_VERSION,
|
||||
imsg->hdr.peerid);
|
||||
imsg->hdr.peerid & 0xff);
|
||||
client_exitval = 1;
|
||||
proc_exit(client_proc);
|
||||
break;
|
||||
|
|
|
|||
1
proc.c
1
proc.c
|
|
@ -122,7 +122,6 @@ peer_check_version(struct tmuxpeer *peer, struct imsg *imsg)
|
|||
|
||||
return (-1);
|
||||
}
|
||||
imsg->hdr.peerid >>= 8;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue