s3-ctdb: Allow ctdb_read_req to read any reqid
authorVolker Lendecke <vl@samba.org>
Wed, 26 Oct 2011 08:58:25 +0000 (10:58 +0200)
committerVolker Lendecke <vlendec@samba.org>
Thu, 27 Oct 2011 18:28:31 +0000 (20:28 +0200)
source3/lib/ctdbd_conn.c

index d4786659d0d6035b294998d245f36afea5dfeb15..f94860a76299d7da8f627080a41784cc9076d8f7 100644 (file)
@@ -499,7 +499,7 @@ static NTSTATUS ctdb_read_req(struct ctdbd_connection *conn, uint32 reqid,
                goto next_pkt;
        }
 
-       if (hdr->reqid != reqid) {
+       if ((reqid != 0) && (hdr->reqid != reqid)) {
                /* we got the wrong reply */
                DEBUG(0,("Discarding mismatched ctdb reqid %u should have "
                         "been %u\n", hdr->reqid, reqid));