Fix async reading winbindd_response
authorVolker Lendecke <vl@samba.org>
Sat, 28 Feb 2009 11:20:56 +0000 (12:20 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 28 Feb 2009 11:32:28 +0000 (12:32 +0100)
source3/lib/wb_reqtrans.c

index a5adf8f10841c6e3129da3701d06c1ecd1f58561..65906dcb91b52fefb9a8a7fe41f967f07586ca7e 100644 (file)
@@ -288,7 +288,7 @@ static ssize_t wb_resp_more(uint8_t *buf, size_t buflen, void *private_data)
                        return -1;
                }
        }
-       return resp->length - 4;
+       return resp->length - buflen;
 }
 
 static void wb_resp_read_done(struct tevent_req *subreq)