libustcomm: fix invalid read of buffer
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 17 Feb 2010 17:21:32 +0000 (12:21 -0500)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 17 Feb 2010 17:21:32 +0000 (12:21 -0500)
libustcomm/ustcomm.c

index 0d2ab339485cb666ba033b24d9896840a7d1c311..0ae70f9af3b3a0eab970434743528371c1d9e333 100644 (file)
@@ -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);
 
This page took 0.025738 seconds and 4 git commands to generate.