[sr-dev] git:master: core: script parsing avp flags fix

Andrei Pelinescu-Onciul andrei at iptel.org
Thu Jul 30 16:01:41 CEST 2009


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

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Thu Jul 30 15:57:27 2009 +0200

core: script parsing avp flags fix

Fix bug when parsing attr_id_any_str used by the avp flags
script functions (setavpflag(), resetavpflag(), isavpflagset()).

Closes: SR #11.
Reported-by: Greger Viken Teigre  gregert at teigre com.

---

 cfg.y |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/cfg.y b/cfg.y
index 51df90e..b51a272 100644
--- a/cfg.y
+++ b/cfg.y
@@ -2325,6 +2325,7 @@ attr_id_any_str:
 			else{
 				*s_attr=$1->lv.avps;
 			}
+			$$=s_attr;
 		}else
 			$$=0; /* not an avp, a pvar */
 		pkg_free($1);




More information about the sr-dev mailing list