Browse code

pua_dialoginfo: check request to cover cases of callbacks without it

- updates the previous commit

Daniel-Constantin Mierla authored on 09/04/2021 16:51:42
Showing 1 changed files
... ...
@@ -272,7 +272,7 @@ __dialog_sendpublish(struct dlg_cell *dlg, int type, struct dlg_cb_params *_para
272 272
 	}
273 273
 
274 274
 	/* skip requests that do not control call state */
275
-	if((request->REQ_METHOD)&(METHOD_PRACK|METHOD_UPDATE)) {
275
+	if(request && (request->REQ_METHOD)&(METHOD_PRACK|METHOD_UPDATE)) {
276 276
 		return;
277 277
 	}
278 278
 	if(include_req_uri) {