[Pvfs2-cvs] commit by bligon in pvfs2/src/common/misc: msgpairarray.sm

CVS commit program cvs at parl.clemson.edu
Mon Nov 23 16:51:46 EST 2009


Update of /projects/cvsroot/pvfs2/src/common/misc
In directory parlweb1:/tmp/cvs-serv2553/src/common/misc

Modified Files:
      Tag: Orange-FailOver-small-io
	msgpairarray.sm 
Log Message:
Completed coding and debugging of small-io failover.


Index: msgpairarray.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/misc/msgpairarray.sm,v
diff -p -u -r1.51.10.1.12.1 -r1.51.10.1.12.2
--- msgpairarray.sm	11 Sep 2009 15:15:50 -0000	1.51.10.1.12.1
+++ msgpairarray.sm	23 Nov 2009 21:51:46 -0000	1.51.10.1.12.2
@@ -308,6 +308,7 @@ static PINT_sm_action msgpairarray_post(
             if (local_enc_and_alloc)
             {
                 PINT_encode_release(&msg_p->encoded_req, PINT_ENCODE_REQ);
+                memset(&msg_p->encoded_req,0,sizeof(msg_p->encoded_req));
                 BMI_memfree(msg_p->svr_addr,msg_p->encoded_resp_p,
                             msg_p->max_resp_sz, BMI_RECV);
                 msg_p->encoded_resp_p = NULL;
@@ -793,10 +794,13 @@ int PINT_serv_free_msgpair_resources(
     if (encoded_req_p && decoded_resp_p && svr_addr_p)
     {
         PINT_encode_release(encoded_req_p, PINT_ENCODE_REQ);
+        memset(encoded_req_p,0,sizeof(*encoded_req_p));
 
         PINT_decode_release(decoded_resp_p, PINT_DECODE_RESP);
+        memset(decoded_resp_p,0,sizeof(*decoded_resp_p));
 
         BMI_memfree(*svr_addr_p, encoded_resp_p, max_resp_sz, BMI_RECV);
+        encoded_resp_p = NULL;
 
         ret = 0;
     }



More information about the Pvfs2-cvs mailing list