Module: kamailio
Branch: master
Commit: 613350632c842c1775e1b5696b4cda4c96e5ba4c
URL:
https://github.com/kamailio/kamailio/commit/613350632c842c1775e1b5696b4cda4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
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/613350632c842c1775e1b5696b4cda4…
Patch:
https://github.com/kamailio/kamailio/commit/613350632c842c1775e1b5696b4cda4…
---
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)) {