/* Track the query with the AL instance. */\r
al_insert_query( h_al, p_query );\r
\r
- /*\r
- * Set the query handle now so that users that do sync queries\r
- * can also cancel the queries.\r
- */\r
- if( ph_query )\r
- *ph_query = p_query;\r
-\r
/* Issue the MAD to the SA. */\r
status = query_sa( p_query, p_query_req, p_query_req->flags );\r
if( status != IB_SUCCESS && status != IB_INVALID_GUID )\r
al_remove_query( p_query );\r
cl_free( p_query );\r
}\r
+ else if( ph_query )\r
+ {\r
+ *ph_query = p_query;\r
+ }\r
\r
AL_EXIT( AL_DBG_QUERY );\r
return status;\r