[sr-dev] git:master: dispatcher(k): use the right pointer to rpc context

Elena-Ramona Modroiu ramona at rosdev.ro
Sat Dec 8 18:23:23 CET 2012


Module: sip-router
Branch: master
Commit: 6904d8c80b2089d01a69c3c0217c76c8e0132bac
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6904d8c80b2089d01a69c3c0217c76c8e0132bac

Author: Elena-Ramona Modroiu <ramona at asipto.com>
Committer: Elena-Ramona Modroiu <ramona at asipto.com>
Date:   Sat Dec  8 14:19:30 2012 +0100

dispatcher(k): use the right pointer to rpc context

---

 modules_k/dispatcher/dispatcher.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules_k/dispatcher/dispatcher.c b/modules_k/dispatcher/dispatcher.c
index 4757c64..cf79d90 100644
--- a/modules_k/dispatcher/dispatcher.c
+++ b/modules_k/dispatcher/dispatcher.c
@@ -978,14 +978,14 @@ static void dispatcher_rpc_list(rpc_t* rpc, void* ctx)
 	/* add entry node */
 	if (rpc->add(ctx, "{", &th) < 0)
 	{
-		rpc->fault(c, 500, "Internal error root reply");
+		rpc->fault(ctx, 500, "Internal error root reply");
 		return;
 	}
 	if(rpc->struct_add(th, "d{",
 				"SET_NO", ds_list_nr,
 				"SET",  &ih)<0)
 	{
-		rpc->fault(c, 500, "Internal error set structure");
+		rpc->fault(ctx, 500, "Internal error set structure");
 		return;
 	}
 
@@ -995,7 +995,7 @@ static void dispatcher_rpc_list(rpc_t* rpc, void* ctx)
 		if(rpc->struct_add(ih, "d",
 					"SET_ID", list->id)<0)
 		{
-			rpc->fault(c, 500, "Internal error creating set id");
+			rpc->fault(ctx, 500, "Internal error creating set id");
 			return;
 		}
 
@@ -1004,7 +1004,7 @@ static void dispatcher_rpc_list(rpc_t* rpc, void* ctx)
 			if(rpc->struct_add(ih, "{",
 						"DEST", &vh)<0)
 			{
-				rpc->fault(c, 500, "Internal error creating dest");
+				rpc->fault(ctx, 500, "Internal error creating dest");
 				return;
 			}
 
@@ -1030,7 +1030,7 @@ static void dispatcher_rpc_list(rpc_t* rpc, void* ctx)
 						"ATTRS", (list->dlist[j].attrs.body.s)?
 						&(list->dlist[j].attrs.body):&data)<0)
 			{
-				rpc->fault(c, 500, "Internal error creating dest struct");
+				rpc->fault(ctx, 500, "Internal error creating dest struct");
 				return;
 			}
 		}




More information about the sr-dev mailing list