kamailio.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
July
June
May
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
List overview
Download
sr-dev
July 2017
----- 2025 -----
July 2025
June 2025
May 2025
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
sr-dev@lists.kamailio.org
23 participants
411 discussions
Start a n
N
ew thread
git:master:f7666ef2: pkg/kamailio/centos/7: Add rabbitmq module
by Daniel-Constantin Mierla
31 Jul '17
31 Jul '17
Module: kamailio Branch: master Commit: f7666ef2ab5ce5e1088728458d76c7e816fbc25c URL:
https://github.com/kamailio/kamailio/commit/f7666ef2ab5ce5e1088728458d76c7e…
Author: Stefan Mititelu <stefan.mititelu(a)onem.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-07-31T15:56:28+02:00 pkg/kamailio/centos/7: Add rabbitmq module --- Modified: pkg/kamailio/centos/7/kamailio.spec --- Diff:
https://github.com/kamailio/kamailio/commit/
…
[View More]
f7666ef2ab5ce5e1088728458d76c7e…
Patch:
https://github.com/kamailio/kamailio/commit/f7666ef2ab5ce5e1088728458d76c7e…
--- diff --git a/pkg/kamailio/centos/7/kamailio.spec b/pkg/kamailio/centos/7/kamailio.spec index 89d887428d..d6410c7e99 100644 --- a/pkg/kamailio/centos/7/kamailio.spec +++ b/pkg/kamailio/centos/7/kamailio.spec @@ -23,6 +23,7 @@ Conflicts: kamailio-geoip < %ver, kamailio-gzcompress < %ver Conflicts: kamailio-ims < %ver, kamailio-java < %ver, kamailio-json < %ver Conflicts: kamailio-lcr < %ver, kamailio-ldap < %ver, kamailio-lua < %ver Conflicts: kamailio-kazoo < %ver +Conflicts: kamailio-rabbitmq < %ver Conflicts: kamailio-memcached < %ver, kamailio-mysql < %ver Conflicts: kamailio-outbound < %ver, kamailio-perl < %ver Conflicts: kamailio-postgresql < %ver, kamailio-presence < %ver @@ -235,6 +236,16 @@ BuildRequires: libuuid-devel, librabbitmq-devel, json-c-devel, libevent-devel Kazoo module for Kamailio. +%package rabbitmq +Summary: RabbitMQ related modules +Group: System Environment/Daemons +Requires: uuid, librabbitmq, kamailio = %ver +BuildRequires: librabbitmq-devel, uuid-devel + +%description rabbitmq +RabbitMQ module for Kamailio. + + %package lcr Summary: Least cost routing for Kamailio. Group: System Environment/Daemons @@ -573,7 +584,7 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \ kdnssec \ %endif kgeoip kgzcompress khttp_async kims kjansson kjson kjsonrpcs \ - kkazoo kldap klua kmemcached \ + kkazoo krabbitmq kldap klua kmemcached \ kmi_xmlrpc kmysql koutbound kperl kpostgres kpresence kpython \ kradius kredis ksctp ksnmpstats ksqlite ktls kunixodbc kutils \ kwebsocket kxml kxmpp kuuid" @@ -593,7 +604,7 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \ kdnssec \ %endif kgeoip kgzcompress khttp_async kims kjansson kjson kjsonrpcs \ - kkazoo kldap klua kmemcached \ + kkazoo krabbitmq kldap klua kmemcached \ kmi_xmlrpc kmysql koutbound kperl kpostgres kpresence kpython \ kradius kredis ksctp ksnmpstats ksqlite ktls kunixodbc kutils \ kwebsocket kxml kxmpp kuuid" @@ -1088,6 +1099,12 @@ fi %{_libdir}/kamailio/modules/kazoo.so +%files rabbitmq +%defattr(-,root,root) +%doc %{_docdir}/kamailio/modules/README.rabbitmq +%{_libdir}/kamailio/modules/rabbitmq.so + + %files lcr %defattr(-,root,root) %doc %{_docdir}/kamailio/modules/README.lcr @@ -1352,6 +1369,8 @@ fi %{_libdir}/kamailio/modules/app_sqlang.so %changelog +* Mon Jul 31 2017 Mititelu Stefan <stefan.mititelu92(a)gmail.com> + - added rabbitmq module * Wed Apr 26 2017 Carsten Bock <carsten(a)ng-voice.co,> - added ims_diameter_server module - added topos_redis module
[View Less]
1
0
0
0
git:master:d2fa6939: pua: free in case of errors
by Daniel-Constantin Mierla
31 Jul '17
31 Jul '17
Module: kamailio Branch: master Commit: d2fa6939e3ba075beb82d173c5d1a7330341c7d0 URL:
https://github.com/kamailio/kamailio/commit/d2fa6939e3ba075beb82d173c5d1a73…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-07-31T15:54:27+02:00 pua: free in case of errors --- Modified: src/modules/pua/add_events.c Modified: src/modules/pua/send_publish.c Modified: src/modules/pua/send_subscribe.c --- Diff:
https://
…
[View More]
github.com/kamailio/kamailio/commit/d2fa6939e3ba075beb82d173c5d1a73…
Patch:
https://github.com/kamailio/kamailio/commit/d2fa6939e3ba075beb82d173c5d1a73…
--- diff --git a/src/modules/pua/add_events.c b/src/modules/pua/add_events.c index f4a9c8ebed..ce94d5a842 100644 --- a/src/modules/pua/add_events.c +++ b/src/modules/pua/add_events.c @@ -150,6 +150,7 @@ int pres_process_body(publ_info_t* publ, str** fin_body, int ver, str** tuple_pa LM_ERR("No more memory\n"); goto error; } + alloc_tuple = 1; tuple->s= (char*)pkg_malloc(tuple_id_len* sizeof(char)); if(tuple->s== NULL) { @@ -160,7 +161,6 @@ int pres_process_body(publ_info_t* publ, str** fin_body, int ver, str** tuple_pa tuple->len= tuple_id_len; *tuple_param= tuple; - alloc_tuple= 1; LM_DBG("allocated tuple_id\n\n"); } @@ -252,12 +252,10 @@ int pres_process_body(publ_info_t* publ, str** fin_body, int ver, str** tuple_pa xmlFreeDoc(doc); if(body) pkg_free(body); - if(tuple && alloc_tuple) - { + if(tuple && alloc_tuple) { if(tuple->s) pkg_free(tuple->s); pkg_free(tuple); - tuple= NULL; } return -1; diff --git a/src/modules/pua/send_publish.c b/src/modules/pua/send_publish.c index fc5f2f1918..5bd13e0b59 100644 --- a/src/modules/pua/send_publish.c +++ b/src/modules/pua/send_publish.c @@ -457,7 +457,7 @@ void publ_cback_func(struct cell *t, int type, struct tmcb_params *ps) return; error: - if(*ps->param) + if(ps->param && *ps->param) { shm_free(*ps->param); *ps->param= NULL; diff --git a/src/modules/pua/send_subscribe.c b/src/modules/pua/send_subscribe.c index ff1f5bad23..89b597a77a 100644 --- a/src/modules/pua/send_subscribe.c +++ b/src/modules/pua/send_subscribe.c @@ -980,6 +980,7 @@ int send_subscribe(subs_info_t* subs) if(str_hdr== NULL || str_hdr->s== NULL) { LM_ERR("while building extra headers\n"); + if(str_hdr) pkg_free(str_hdr); return -1; }
[View Less]
1
0
0
0
git:master:5238fe0a: rtpengine: free rtpl if error inside fixup_set_id()
by Daniel-Constantin Mierla
31 Jul '17
31 Jul '17
Module: kamailio Branch: master Commit: 5238fe0a5c66cf559bc099bf5e2e0ced42390625 URL:
https://github.com/kamailio/kamailio/commit/5238fe0a5c66cf559bc099bf5e2e0ce…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-07-31T15:54:27+02:00 rtpengine: free rtpl if error inside fixup_set_id() --- Modified: src/modules/rtpengine/rtpengine.c --- Diff:
https://github.com/kamailio/kamailio/commit/
…
[View More]
5238fe0a5c66cf559bc099bf5e2e0ce…
Patch:
https://github.com/kamailio/kamailio/commit/5238fe0a5c66cf559bc099bf5e2e0ce…
--- diff --git a/src/modules/rtpengine/rtpengine.c b/src/modules/rtpengine/rtpengine.c index d4f45bf7c0..83c56ab826 100644 --- a/src/modules/rtpengine/rtpengine.c +++ b/src/modules/rtpengine/rtpengine.c @@ -1046,6 +1046,7 @@ static int fixup_set_id(void ** param, int param_no) int_val = pv_locate_name(&s); if(int_val<0 || int_val!=s.len) { LM_ERR("invalid parameter %s\n", s.s); + pkg_free(rtpl); return -1; } rtpl->rpv = pv_cache_get(&s);
[View Less]
1
0
0
0
git:master:30166790: presence_xml: do not allocate memory before getting presence node
by Daniel-Constantin Mierla
31 Jul '17
31 Jul '17
Module: kamailio Branch: master Commit: 30166790b1b8addef006c7a933ac2c009a3998e2 URL:
https://github.com/kamailio/kamailio/commit/30166790b1b8addef006c7a933ac2c0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-07-31T15:54:27+02:00 presence_xml: do not allocate memory before getting presence node - useless operation in case of error --- Modified: src/modules/presence_xml/notify_body.c --- Diff:
https:
…
[View More]
//github.com/kamailio/kamailio/commit/30166790b1b8addef006c7a933ac2c0…
Patch:
https://github.com/kamailio/kamailio/commit/30166790b1b8addef006c7a933ac2c0…
--- diff --git a/src/modules/presence_xml/notify_body.c b/src/modules/presence_xml/notify_body.c index 82b4a4d96e..8872c1dccc 100644 --- a/src/modules/presence_xml/notify_body.c +++ b/src/modules/presence_xml/notify_body.c @@ -233,17 +233,6 @@ str* get_final_notify_body( subs_t *subs, str* notify_body, xmlNodePtr rule_node char* content = NULL; char all_name[KSR_FNB_NAME_SIZE+8]; - strcpy(all_name, "all-"); - - new_body = (str*)pkg_malloc(sizeof(str)); - if(new_body == NULL) - { - LM_ERR("while allocating memory\n"); - return NULL; - } - - memset(new_body, 0, sizeof(str)); - doc = xmlParseMemory(notify_body->s, notify_body->len); if(doc== NULL) { @@ -257,6 +246,16 @@ str* get_final_notify_body( subs_t *subs, str* notify_body, xmlNodePtr rule_node goto error; } + strcpy(all_name, "all-"); + + new_body = (str*)pkg_malloc(sizeof(str)); + if(new_body == NULL) + { + LM_ERR("while allocating memory\n"); + return NULL; + } + memset(new_body, 0, sizeof(str)); + transf_node = xmlNodeGetChildByName(rule_node, "transformations"); if(transf_node == NULL) { @@ -502,34 +501,21 @@ str* get_final_notify_body( subs_t *subs, str* notify_body, xmlNodePtr rule_node LM_DBG("body = \n%.*s\n", new_body->len, new_body->s); - xmlFreeDoc(doc); + xmlFreeDoc(doc); xmlFree(class_cont); xmlFree(occurence_ID); xmlFree(deviceID); xmlFree(service_uri); - xmlCleanupParser(); - xmlMemoryDump(); + xmlCleanupParser(); + xmlMemoryDump(); + + return new_body; - return new_body; error: - if(doc) + if(doc) { xmlFreeDoc(doc); - if(new_body) - { - if(new_body->s) - xmlFree(new_body->s); - pkg_free(new_body); - } - if(class_cont) - xmlFree(class_cont); - if(occurence_ID) - xmlFree(occurence_ID); - if(deviceID) - xmlFree(deviceID); - if(service_uri) - xmlFree(service_uri); - + } return NULL; }
[View Less]
1
0
0
0
git:master:30014025: presence_dialoginfo: safety checks to avoid accessing null values
by Daniel-Constantin Mierla
31 Jul '17
31 Jul '17
Module: kamailio Branch: master Commit: 30014025157f9ac79c98f1361a86974858ef8022 URL:
https://github.com/kamailio/kamailio/commit/30014025157f9ac79c98f1361a86974…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-07-31T15:54:27+02:00 presence_dialoginfo: safety checks to avoid accessing null values --- Modified: src/modules/presence_dialoginfo/notify_body.c --- Diff:
https://github.com/kamailio/kamailio/
…
[View More]
commit/30014025157f9ac79c98f1361a86974…
Patch:
https://github.com/kamailio/kamailio/commit/30014025157f9ac79c98f1361a86974…
[View Less]
1
0
0
0
git:master:fda8de91: ctl: skip condition on already set name variable
by Daniel-Constantin Mierla
31 Jul '17
31 Jul '17
Module: kamailio Branch: master Commit: fda8de91d80a2aee7a3ec5e44e6fc1d918541254 URL:
https://github.com/kamailio/kamailio/commit/fda8de91d80a2aee7a3ec5e44e6fc1d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-07-31T15:54:27+02:00 ctl: skip condition on already set name variable --- Modified: src/modules/ctl/ctrl_socks.c --- Diff:
https://github.com/kamailio/kamailio/commit/
…
[View More]
fda8de91d80a2aee7a3ec5e44e6fc1d…
Patch:
https://github.com/kamailio/kamailio/commit/fda8de91d80a2aee7a3ec5e44e6fc1d…
--- diff --git a/src/modules/ctl/ctrl_socks.c b/src/modules/ctl/ctrl_socks.c index 9e800a907b..f9d559564b 100644 --- a/src/modules/ctl/ctrl_socks.c +++ b/src/modules/ctl/ctrl_socks.c @@ -145,7 +145,7 @@ struct id_list* parse_listen_id(char* l, int len, enum socket_protos def) proto=UDP_SOCK; DBG("guess:%s is a tcp socket\n", name); } - }else if (name && strchr(name, '/')){ + }else if (strchr(name, '/')){ switch(def){ case TCP_SOCK: case UDP_SOCK:
[View Less]
1
0
0
0
git:master:44db76ac: cplc: init time switch structures
by Daniel-Constantin Mierla
31 Jul '17
31 Jul '17
Module: kamailio Branch: master Commit: 44db76acb7523b3cd6816c77de45b71857b1a3c1 URL:
https://github.com/kamailio/kamailio/commit/44db76acb7523b3cd6816c77de45b71…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-07-31T15:54:27+02:00 cplc: init time switch structures --- Modified: src/modules/cplc/cpl_switches.h --- Diff:
https://github.com/kamailio/kamailio/commit/44db76acb7523b3cd6816c77de45b71…
…
[View More]
Patch:
https://github.com/kamailio/kamailio/commit/44db76acb7523b3cd6816c77de45b71…
--- diff --git a/src/modules/cplc/cpl_switches.h b/src/modules/cplc/cpl_switches.h index 03e9a48ae9..4a99b2cbe4 100644 --- a/src/modules/cplc/cpl_switches.h +++ b/src/modules/cplc/cpl_switches.h @@ -686,6 +686,9 @@ static inline char *run_time_switch( struct cpl_interpreter *intr ) ac_tm_t att; tmrec_t trt; + memset(&att, 0, sizeof(ac_tm_t)); + memset(&trt, 0, sizeof(tmrec_t)); + LM_DBG("checking recv. time stamp <%d>\n", intr->recv_time); switch (NR_OF_ATTR(intr->ip)) {
[View Less]
1
0
0
0
git:master:3f96ede6: cplc: init structures, fix parameter number in fixup
by Daniel-Constantin Mierla
31 Jul '17
31 Jul '17
Module: kamailio Branch: master Commit: 3f96ede632ce9ef945086a1f384677151209fcc6 URL:
https://github.com/kamailio/kamailio/commit/3f96ede632ce9ef945086a1f3846771…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-07-31T15:54:27+02:00 cplc: init structures, fix parameter number in fixup --- Modified: src/modules/cplc/cplc.c --- Diff:
https://github.com/kamailio/kamailio/commit/
…
[View More]
3f96ede632ce9ef945086a1f3846771…
Patch:
https://github.com/kamailio/kamailio/commit/3f96ede632ce9ef945086a1f3846771…
--- diff --git a/src/modules/cplc/cplc.c b/src/modules/cplc/cplc.c index cb47ffc4e0..95cf946a83 100644 --- a/src/modules/cplc/cplc.c +++ b/src/modules/cplc/cplc.c @@ -203,7 +203,7 @@ static int fixup_cpl_run_script3(void** param, int param_no) { if (param_no==1 || param_no==2) { return fixup_cpl_run_script(param, param_no); - } else if (param_no==2) { + } else if (param_no==3) { return fixup_spve_null(param, 1); } return 0;
[View Less]
1
0
0
0
git:master:9a7fee2d: cfgt: check error case for mkdir()
by Daniel-Constantin Mierla
31 Jul '17
31 Jul '17
Module: kamailio Branch: master Commit: 9a7fee2dac2f59c277d2634937c7449b9659a20d URL:
https://github.com/kamailio/kamailio/commit/9a7fee2dac2f59c277d2634937c7449…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-07-31T15:54:27+02:00 cfgt: check error case for mkdir() --- Modified: src/modules/cfgt/cfgt_int.c --- Diff:
https://github.com/kamailio/kamailio/commit/9a7fee2dac2f59c277d2634937c7449…
Patch:
…
[View More]
https://github.com/kamailio/kamailio/commit/9a7fee2dac2f59c277d2634937c7449…
--- diff --git a/src/modules/cfgt/cfgt_int.c b/src/modules/cfgt/cfgt_int.c index 56292fb1a2..20fcfb0fb8 100644 --- a/src/modules/cfgt/cfgt_int.c +++ b/src/modules/cfgt/cfgt_int.c @@ -362,7 +362,10 @@ void cfgt_save_node(cfgt_node_p node) return; } LM_DBG("dir [%s]\n", dest.s); - mkdir(dest.s, S_IRWXO|S_IXGRP|S_IRWXU); + if(mkdir(dest.s, S_IRWXO|S_IXGRP|S_IRWXU)<0) { + LM_ERR("failed to make directory (%d)\n", errno); + return; + } dest.s[dir] = '/'; fp = fopen(dest.s, "w"); LM_DBG("file [%s]\n", dest.s);
[View Less]
1
0
0
0
git:master:2f29115d: auth_identity: code clarity adjustments
by Daniel-Constantin Mierla
31 Jul '17
31 Jul '17
Module: kamailio Branch: master Commit: 2f29115d8280ccf04ea823d5cf8f6621b8624edc URL:
https://github.com/kamailio/kamailio/commit/2f29115d8280ccf04ea823d5cf8f662…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2017-07-31T15:54:27+02:00 auth_identity: code clarity adjustments --- Modified: src/modules/auth_identity/auth_hdrs.c --- Diff:
https://github.com/kamailio/kamailio/commit/
…
[View More]
2f29115d8280ccf04ea823d5cf8f662…
Patch:
https://github.com/kamailio/kamailio/commit/2f29115d8280ccf04ea823d5cf8f662…
--- diff --git a/src/modules/auth_identity/auth_hdrs.c b/src/modules/auth_identity/auth_hdrs.c index 0947f5e9a1..24d2ab395f 100644 --- a/src/modules/auth_identity/auth_hdrs.c +++ b/src/modules/auth_identity/auth_hdrs.c @@ -471,7 +471,11 @@ int digeststr_asm(dynstr *sout, struct sip_msg *msg, str *sdate, int iflags) LOG(L_ERR, "AUTH_IDENTITY:digeststr_asm: DATE header is not found\n"); return -9; } + break; } + if (app2dynstr(sout,&sact)) + return -10; + break; default: if (iRes==AUTH_NOTFOUND) break; @@ -514,13 +518,14 @@ int append_hf(struct sip_msg* msg, char *str1, enum _hdr_types_t type) len=strlen(str1); - s = (char*)pkg_malloc(len); + s = (char*)pkg_malloc(len+1); if (!s) { LOG(L_ERR, "AUTH_IDENTITY:append_hf: No memory left\n"); return -1; } memcpy(s, str1, len); + s[len] = '\0'; if (insert_new_lump_before(anchor, s, len, type) == 0) { LOG(L_ERR, "AUTH_IDENTITY:append_hf: Can't insert lump\n"); @@ -643,6 +648,8 @@ static char *auth_get_hf_name(char *begin, char *end, enum _hdr_types_t *type) p += 4; goto dc_end; } + *type = HDR_OTHER_T; + break; default: /* compact headers */ switch(LOWER_BYTE(*p)) { @@ -656,6 +663,8 @@ static char *auth_get_hf_name(char *begin, char *end, enum _hdr_types_t *type) *type = HDR_CONTACT_T; return (p + 2); } + *type = HDR_OTHER_T; + break; default: *type = HDR_OTHER_T; break;
[View Less]
1
0
0
0
← Newer
1
...
6
7
8
9
10
11
12
...
42
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Results per page:
10
25
50
100
200