Преглед на файлове

dispatcher(k): allow set id 0 for OPTIONS callback

- set id is provided in param pointer address, 0 being equivalent to
  NULL
- reported by Avi Brender
Daniel-Constantin Mierla преди 13 години
родител
ревизия
2664cb9aa8
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      modules_k/dispatcher/dispatch.c

+ 2 - 2
modules_k/dispatcher/dispatch.c

@@ -2326,9 +2326,9 @@ static void ds_options_callback( struct cell *t, int type,
 	sip_msg_t *fmsg;
 	int state;
 
-	/* The Param does contain the group, in which the failed host
+	/* The param contains the group, in which the failed host
 	 * can be found.*/
-	if (!*ps->param)
+	if (ps->param==NULL)
 	{
 		LM_DBG("No parameter provided, OPTIONS-Request was finished"
 				" with code %d\n", ps->code);