Ver código fonte

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

Michal Matyska 19 anos atrás
pai
commit
028666eefd
1 arquivos alterados com 2 adições e 0 exclusões
  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;