]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
pjsip_distributor.c: Use correct rdata info access method. 08/2908/1
authorRichard Mudgett <rmudgett@digium.com>
Wed, 25 May 2016 23:30:07 +0000 (18:30 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 26 May 2016 17:25:37 +0000 (12:25 -0500)
The pjproject doxygen for rdata->msg_info.info says to call
pjsip_rx_data_get_info() instead of accessing the struct member directly.
You need to call the function mostly because the function will generate
the struct member value if it is not already setup.

Change-Id: Iafe8b01242b7deb0ebfdc36685e21374a43936d2

res/res_pjsip/pjsip_distributor.c

index 2ab954eb04b9c34e8e4b2d039494f74f63b066f3..0d3df06f071ee135d39f1b5426e5cd385e7a9e41 100644 (file)
@@ -257,7 +257,8 @@ static pjsip_dialog *find_dialog(pjsip_rx_data *rdata)
 
        tsx = pjsip_tsx_layer_find_tsx(&tsx_key, PJ_TRUE);
        if (!tsx) {
-               ast_debug(3, "Could not find matching transaction for %s\n", rdata->msg_info.info);
+               ast_debug(3, "Could not find matching transaction for %s\n",
+                       pjsip_rx_data_get_info(rdata));
                return NULL;
        }