Browse code

dialog_ng: Safety check on create_cbs

Carsten Bock authored on 26/02/2015 21:02:19
Showing 1 changed files
... ...
@@ -235,7 +235,7 @@ void run_create_callbacks(struct dlg_cell *dlg, struct sip_msg *msg)
235 235
 {
236 236
 	struct dlg_callback *cb;
237 237
 
238
-	if (create_cbs==NULL || create_cbs->first==NULL)
238
+	if (create_cbs==NULL || create_cbs==POINTER_CLOSED_MARKER || create_cbs->first==NULL)
239 239
 		return;
240 240
 
241 241
 	params.req = msg;