Don't shift version out of peerid, it is needed later.

pull/185/head
nicm 2015-10-31 13:43:38 +00:00
parent abb4e9e2fa
commit b0a99e85b6
2 changed files with 1 additions and 2 deletions

View File

@ -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
View File

@ -122,7 +122,6 @@ peer_check_version(struct tmuxpeer *peer, struct imsg *imsg)
return (-1);
}
imsg->hdr.peerid >>= 8;
return (0);
}