Browse code

pua_dialoginfo: check request to cover cases of callbacks without it

- updates the previous commit

(cherry picked from commit 912e2ef41533e961bc55ca80619305af8e474469)

Daniel-Constantin Mierla authored on 09/04/2021 16:51:42
Showing 1 changed files
... ...
@@ -262,7 +262,7 @@ __dialog_sendpublish(struct dlg_cell *dlg, int type, struct dlg_cb_params *_para
262 262
 	}
263 263
 
264 264
 	/* skip requests that do not control call state */
265
-	if((request->REQ_METHOD)&(METHOD_PRACK|METHOD_UPDATE)) {
265
+	if(request && (request->REQ_METHOD)&(METHOD_PRACK|METHOD_UPDATE)) {
266 266
 		return;
267 267
 	}
268 268
 	if(include_req_uri) {