[sr-dev] git:3.2: dispatcher(k): allow set id 0 for OPTIONS callback

Daniel-Constantin Mierla miconda at gmail.com
Thu Jul 19 14:59:49 CEST 2012


Module: sip-router
Branch: 3.2
Commit: 6e0030828faccceaaa1238e2f4c83d97287a4492
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6e0030828faccceaaa1238e2f4c83d97287a4492

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Jun 25 10:36:31 2012 +0200

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
(cherry picked from commit 2664cb9aa8ffd5d26ef6a0841318ccbcdefbf69b)

---

 modules_k/dispatcher/dispatch.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules_k/dispatcher/dispatch.c b/modules_k/dispatcher/dispatch.c
index e338eb6..0b1856d 100644
--- a/modules_k/dispatcher/dispatch.c
+++ b/modules_k/dispatcher/dispatch.c
@@ -2322,9 +2322,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);




More information about the sr-dev mailing list