diff --git a/qrexec/qrexec-daemon.c b/qrexec/qrexec-daemon.c index 9605136..95d5aa6 100644 --- a/qrexec/qrexec-daemon.c +++ b/qrexec/qrexec-daemon.c @@ -205,6 +205,10 @@ void init(int xid) } vchan = libvchan_client_init(xid, REXEC_PORT); + if (!vchan) { + perror("cannot connect to qrexec agent"); + exit(1); + } /* wait for connection */ while (!libvchan_is_open(vchan)) libvchan_wait(vchan);