X-Git-Url: http://git.lttng.org/?p=ust.git;a=blobdiff_plain;f=libustcomm%2Fustcomm.c;h=0ae70f9af3b3a0eab970434743528371c1d9e333;hp=0d2ab339485cb666ba033b24d9896840a7d1c311;hb=e2b815a9b15bf6eb940aaa0b336327a1702c3576;hpb=da000ba4a6841b1bd55344c75c595aabdd830cd7 diff --git a/libustcomm/ustcomm.c b/libustcomm/ustcomm.c index 0d2ab33..0ae70f9 100644 --- a/libustcomm/ustcomm.c +++ b/libustcomm/ustcomm.c @@ -326,7 +326,7 @@ int ustcomm_recv_message(struct ustcomm_server *server, char **msg, struct ustco if(src) src->fd = fds[idx].fd; - if(**msg == 0) { + if(retval == 0) { /* connection finished */ close(fds[idx].fd);