static void sigtran_tcap_timeout(void *data)
{
- REQUEST *request;
+ REQUEST *request = NULL;
sigtran_transaction_t *txn = talloc_get_type_abort(data, sigtran_transaction_t);
/*
* Only do RDEBUG if the transaction is still active.
*/
- if (!txn->ctx.defunct) {
- request = txn->ctx.request;
+ if (!txn->ctx.defunct) request = txn->ctx.request;
- REDEBUG("OTID %u Invoke ID %u timeout", txn->ctx.otid, txn->ctx.invoke_id);
- } else {
- DEBUG("OTID %u Invoke ID %u timeout", txn->ctx.otid, txn->ctx.invoke_id);
- }
+ ROPTIONAL(REDEBUG, ERROR, "OTID %u Invoke ID %u timeout", txn->ctx.otid, txn->ctx.invoke_id);
/*
* Remove the outstanding transaction
* @param[in] instance This module's instance (unused)
* @return 0
*/
-static int mod_detach(UNUSED void *instance)
+static int mod_detach(void *instance)
{
rlm_winbind_t *inst = instance;
fr_pool_free(inst->wb_pool);
+
return 0;
}
static rlm_rcode_t CC_HINT(nonnull) mod_authorize(void *instance, UNUSED void *thread, REQUEST *request)
{
rlm_winbind_t const *inst = instance;
- VALUE_PAIR *vp;
if (!request->password || (request->password->da != attr_user_password)) {
RDEBUG("No User-Password found in the request; not doing winbind authentication.");