]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - client_common.c
fsck.c: Fix NULL-pointer dereference.
[paraslash.git] / client_common.c
index 3501a5df210409029ef954e5ddb4ebdc0b90561c..b9d61c587d3ebfe375963a4ee4d73fc1291fad1f 100644 (file)
@@ -76,6 +76,7 @@ void client_close(struct private_client_data *pcd)
        free(pcd);
 }
 
+/* connect to para_server and register the client task */
 static int client_connect(struct private_client_data *pcd)
 {
        int ret;
@@ -374,7 +375,7 @@ void client_post_select(struct sched *s, struct task *t)
                t->ret = send_bin_buffer(pcd->fd, pcd->inbuf, *pcd->in_loaded);
                if (t->ret < 0)
                        return;
-               *pcd->in_loaded = 0; /* FIXME: short writes */
+               *pcd->in_loaded = 0;
                return;
        case CL_RECEIVING:
                t->ret = client_recv_buffer(pcd);