Browse code

Merge 8e28a17ae57ca220b6304556c63fef810e1296dd into 2e85bb541ff19e4b0074b04c4d05399a216deca2

Saurabh authored on 18/01/2022 16:08:31 • GitHub committed on 18/01/2022 16:08:31
Showing 1 changed files
... ...
@@ -910,20 +910,20 @@ static int ki_ht_iterator_setex(sip_msg_t *msg, str *iname, int exval)
910 910
 static int w_ht_iterator_setex(struct sip_msg* msg, char* iname, char* val)
911 911
 {
912 912
 	str siname;
913
-	int ival;
913
+	int exval;
914 914
 
915 915
 	if(fixup_get_svalue(msg, (gparam_t*)iname, &siname)<0 || siname.len<=0)
916 916
 	{
917 917
 		LM_ERR("cannot get iterator name\n");
918 918
 		return -1;
919 919
 	}
920
-	if(fixup_get_ivalue(msg, (gparam_t*)val, &ival)<0)
920
+	if(fixup_get_ivalue(msg, (gparam_t*)val, &exval)<0)
921 921
 	{
922 922
 		LM_ERR("cannot get value\n");
923 923
 		return -1;
924 924
 	}
925 925
 
926
-	return ki_ht_iterator_seti(msg, &siname, ival);
926
+	return ki_ht_iterator_setex(msg, &siname, exval);
927 927
 }
928 928
 
929 929
 static int ki_ht_slot_xlock(sip_msg_t *msg, str *htname, str *skey, int lmode)