]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of rs_wrid
authorSean Hefty <sean.hefty@intel.com>
Fri, 12 Apr 2013 22:56:57 +0000 (15:56 -0700)
committerSean Hefty <sean.hefty@intel.com>
Fri, 12 Apr 2013 22:56:57 +0000 (15:56 -0700)
src/rsocket.c

index dbbe245ca37a01181baeb016d99bc42573df7904..ca771165dec3b2c2395a11537dccc55eb5f6c98b 100644 (file)
@@ -1854,7 +1854,7 @@ static int ds_valid_recv(struct ds_qp *qp, struct ibv_wc *wc)
 {
        struct ds_header *hdr;
 
-       hdr = (struct ds_header *) (qp->rbuf + rs_wr_data(wc.wr_id));
+       hdr = (struct ds_header *) (qp->rbuf + rs_wr_data(wc->wr_id));
        return ((wc->byte_len >= sizeof(struct ibv_grh) + DS_IPV4_HDR_LEN) &&
                ((hdr->version == 4 && hdr->length == DS_IPV4_HDR_LEN) ||
                 (hdr->version == 6 && hdr->length == DS_IPV6_HDR_LEN)));