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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Fri Dec  6 18:15:22 2013 +0100

pv: use int index for looking up flag index

- some functions used for check may return negative on error

(cherry picked from commit 30359b3cfce2ce909153e06b1954778c4eababa7)

---

 modules/pv/pv_core.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/pv/pv_core.c b/modules/pv/pv_core.c
index ac0b638..0a0483c 100644
--- a/modules/pv/pv_core.c
+++ b/modules/pv/pv_core.c
@@ -2711,12 +2711,12 @@ error:
 
 int pv_parse_flag_param(pv_spec_p sp, str *in)
 {
-       unsigned int n;
+       int n;
 
        if(sp==NULL || in==NULL || in->len<=0)
                return -1;
 
-       if (str2int(in, &n) != 0)
+       if (str2sint(in, &n) != 0)
        {
                if ((n = get_flag_no(in->s, in->len)) < 0)
                {


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to