}
/* Hand off the request for processing and get the response */
- resp_msg = req_cb(tmp_ctx, req_msg, req_cookie);
+ rc = req_cb(tmp_ctx, req_msg, &resp_msg, req_cookie);
+ if (rc != TR_GSS_SUCCESS)
+ goto cleanup;
if (resp_msg == NULL) {
// no response, clean up