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

dispatcher(k): typo in ds_next_dst() dstid avp handling

- fixes wrong condition in finding dstid avp
- patch by Bogdan Pintea
Daniel-Constantin Mierla преди 14 години
родител
ревизия
11f7ddaf80
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      modules_k/dispatcher/dispatch.c

+ 2 - 2
modules_k/dispatcher/dispatch.c

@@ -1928,9 +1928,9 @@ int ds_next_dst(struct sip_msg *msg, int mode)
 	{
 		prev_avp = search_first_avp(dstid_avp_type, dstid_avp_name,
 				&avp_value, &st);
-		if(prev_avp!=NULL)
+		if(prev_avp==NULL)
 		{
-			LM_ERR("cannot uid for dst addr\n");
+			LM_ERR("cannot find uid avp for destination address\n");
 			return -1;
 		}
 		if(ds_load_replace(msg, &avp_value.s)<0)