From: Pierre-Marc Fournier Date: Wed, 17 Feb 2010 17:21:32 +0000 (-0500) Subject: libustcomm: fix invalid read of buffer X-Git-Tag: v1.9.1~728 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e2b815a9b15bf6eb940aaa0b336327a1702c3576;p=lttng-ust.git libustcomm: fix invalid read of buffer --- diff --git a/libustcomm/ustcomm.c b/libustcomm/ustcomm.c index 0d2ab339..0ae70f9a 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);