Module: sip-router Branch: master Commit: 027d68e9cc7afcdb3ba8922215a28e33a5225097 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=027d68e9...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Thu May 6 21:09:47 2010 +0200
avposp: use state in searching first avp in avp_copy
- state parameter was missing when searching first avp, keeping it uninitialized when searching the next, causing a crash when flag 'g' was used in avp_copy - reported by Jon Bonilla (Manwe)
---
modules/avpops/avpops_impl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/avpops/avpops_impl.c b/modules/avpops/avpops_impl.c index 3817cd8..77de8a8 100644 --- a/modules/avpops/avpops_impl.c +++ b/modules/avpops/avpops_impl.c @@ -842,7 +842,7 @@ int ops_copy_avp( struct sip_msg* msg, struct fis_param* src, goto error; }
- avp = search_first_avp( name_type1, avp_name1, &avp_val, 0); + avp = search_first_avp( name_type1, avp_name1, &avp_val, &st); while ( avp ) { /* build a new avp with new name, but old value */