Răsfoiți Sursa

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 ani în urmă
părinte
comite
2664cb9aa8
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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);