pthread_mutex_unlock(&tidc_mutex);
/* If we weren't able to get a response from the trust router server, goto cleanup (hence return NULL realm) */
- if (!rv) goto cleanup;
+ if (!rv) {
+ DEBUG2("Could not connect with Trust Router server for realm %s, rv = %d\n", realm, rv);
+ module_failure_msg(request, "Could not connect with Trust Router server for realm %s", realm);
+ goto cleanup;
+ }
/* If we got a response but it is an error one, include a Reply-Message and Error-Cause attributes */
if (cookie.result != TID_SUCCESS) {