From: Pierre-Marc Fournier Date: Wed, 17 Feb 2010 17:21:32 +0000 (-0500) Subject: libustcomm: fix invalid read of buffer X-Git-Tag: v0.2~5 X-Git-Url: http://git.lttng.org/?p=ust.git;a=commitdiff_plain;h=e2b815a9b15bf6eb940aaa0b336327a1702c3576 libustcomm: fix invalid read of buffer --- 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);