Skip to content

Commit 27f7ac0

Browse files
committed
Fix protocol version negotiation on agent reconnect
When qrexec-agent reconnect save newly negotiated protocol version. The agent might have been just updated.
1 parent f0ab26a commit 27f7ac0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

daemon/qrexec-daemon.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,8 @@ static int handle_agent_restart(int xid) {
15331533
PERROR("cannot connect to qrexec agent");
15341534
return -1;
15351535
}
1536-
if (handle_agent_hello(vchan, remote_domain_name) < 0) {
1536+
protocol_version = handle_agent_hello(vchan, remote_domain_name);
1537+
if (protocol_version < 0) {
15371538
libvchan_close(vchan);
15381539
vchan = NULL;
15391540
return -1;

0 commit comments

Comments
 (0)