From e2b815a9b15bf6eb940aaa0b336327a1702c3576 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Wed, 17 Feb 2010 12:21:32 -0500 Subject: [PATCH] libustcomm: fix invalid read of buffer --- libustcomm/ustcomm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1