From 6b19f5a444fc17372fab6c3450f86ef657dbc956 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 7 Jun 2013 18:02:04 +0200 Subject: [PATCH] OSC bail out if server cannot be started --- libs/surfaces/osc/osc.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 9e80554f0b..4e80c4dad0 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -167,6 +167,10 @@ OSC::start () continue; } + if (!_osc_server) { + return 1; + } + int fd = lo_server_get_socket_fd (_osc_server); fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);