Signed-off-by: Arlin Davis <[email protected]>
---
 dapl/common/dapl_ep_util.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dapl/common/dapl_ep_util.c b/dapl/common/dapl_ep_util.c
index 5133f59..8ceb1be 100644
--- a/dapl/common/dapl_ep_util.c
+++ b/dapl/common/dapl_ep_util.c
@@ -352,6 +352,10 @@ dapl_ep_post_send_req(IN DAT_EP_HANDLE ep_handle,
 
        ep_ptr = (DAPL_EP *) ep_handle;
 
+       if ((ep_ptr->param.ep_state != DAT_EP_STATE_CONNECTED) &&
+           (ep_ptr->param.ep_state != DAT_EP_STATE_DISCONNECTED))
+               return(DAT_ERROR(DAT_INVALID_STATE, 
DAT_INVALID_STATE_EP_UNCONNECTED));
+
        /*
         * Synchronization ok since this buffer is only used for send
         * requests, which aren't allowed to race with each other.
-- 
1.7.3




_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to