Merge pull request #99 from painless-security/jennifer/count_failed_reqs
[trust_router.git] / common / tr_gss.c
index d576449..251c29e 100644 (file)
@@ -274,7 +274,9 @@ TR_GSS_RC tr_gss_handle_connection(int conn,
   }
 
   /* 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