]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
the transaction may be defunct
authorAlan T. DeKok <aland@freeradius.org>
Wed, 9 May 2018 15:23:37 +0000 (11:23 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 9 May 2018 15:23:37 +0000 (11:23 -0400)
If so, don't do REDEBUG

src/modules/rlm_sigtran/sccp.c

index f1225337fca989d70db9547a6459ba93da1a97cc..2a66f7684bc1949909e920bd971b6c8dfe1500dc 100644 (file)
@@ -74,9 +74,16 @@ static void sigtran_tcap_timeout(void *data)
        REQUEST *request;
        sigtran_transaction_t *txn = talloc_get_type_abort(data, sigtran_transaction_t);
 
-       request = txn->ctx.request;
+       /*
+        *      Only do RDEBUG if the transaction is still active.
+        */
+       if (!txn->ctx.defunct) {
+               request = txn->ctx.request;
 
-       REDEBUG("OTID %u Invoke ID %u timeout", txn->ctx.otid, txn->ctx.invoke_id);
+               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);
+       }
 
        /*
         *      Remove the outstanding transaction