瀏覽代碼

[Closes SER-95]
Corrected AVP assignment producing wrong name. Thanks to Miklos.

Michal Matyska 19 年之前
父節點
當前提交
028666eefd
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      action.c

+ 2 - 0
action.c

@@ -792,6 +792,8 @@ int do_action(struct action* a, struct sip_msg* msg)
 					avp = search_avp_by_index(a->val[1].u.attr->type, a->val[1].u.attr->name, &value, a->val[1].u.attr->index);
 					if (avp) {
 						flags = a->val[0].u.attr->type | (avp->flags & ~(AVP_CLASS_ALL|AVP_TRACK_ALL));
+						name = a->val[0].u.attr->name;
+						ret = 1;
 					} else {
 						ret = E_UNSPEC;
 						break;