[sr-dev] git:master:61335063: misc_radius: fixed accessing str* params after previous commit

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[sr-dev] git:master:61335063: misc_radius: fixed accessing str* params after previous commit

Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 613350632c842c1775e1b5696b4cda4c96e5ba4c
URL: https://github.com/kamailio/kamailio/commit/613350632c842c1775e1b5696b4cda4c96e5ba4c

Author: Daniel-Constantin Mierla <[hidden email]>
Committer: Daniel-Constantin Mierla <[hidden email]>
Date: 2017-12-05T09:19:29+01:00

misc_radius: fixed accessing str* params after previous commit

---

Modified: src/modules/misc_radius/functions.c

---

Diff:  https://github.com/kamailio/kamailio/commit/613350632c842c1775e1b5696b4cda4c96e5ba4c.diff
Patch: https://github.com/kamailio/kamailio/commit/613350632c842c1775e1b5696b4cda4c96e5ba4c.patch

---

diff --git a/src/modules/misc_radius/functions.c b/src/modules/misc_radius/functions.c
index c176084382..c10d3ce801 100644
--- a/src/modules/misc_radius/functions.c
+++ b/src/modules/misc_radius/functions.c
@@ -516,11 +516,11 @@ int radius_does_uri_user_host_exist(struct sip_msg *_m, str *user, str *host)
  }
  at = user_host;
  memcpy(at, user->s, user->len);
- at += user.len;
+ at += user->len;
  *at = '@';
  at++;
  memcpy(at, host->s, host->len);
- at += host.len;
+ at += host->len;
  *at = '\0';
  if(!rc_avpair_add(
  rh, &send, uri_attrs[SA_USER_NAME].v, user_host, -1, 0)) {


_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev