hlr_ussd.c: fix: properly print a EUSE / IUSE name
We need to distinguish between both EUSE and IUSE, and properly print their names. Otherwise, garbage is printed in case of IUSE. Change-Id: I497e7c1fe41279afdb1256ee69e166066a6462bb
This commit is contained in:
parent
b93c44f32e
commit
e6c839ed2d
|
@ -126,8 +126,10 @@ static struct hlr_ussd_route *ussd_route_lookup_7bit(struct hlr *hlr, const char
|
|||
struct hlr_ussd_route *rt;
|
||||
llist_for_each_entry(rt, &hlr->ussd_routes, list) {
|
||||
if (!strncmp(ussd_code, rt->prefix, strlen(rt->prefix))) {
|
||||
LOGP(DSS, LOGL_DEBUG, "Found EUSE %s (prefix %s) for USSD Code '%s'\n",
|
||||
rt->u.euse->name, rt->prefix, ussd_code);
|
||||
LOGP(DSS, LOGL_DEBUG, "Found %s '%s' (prefix '%s') for USSD "
|
||||
"Code '%s'\n", rt->is_external ? "EUSE" : "IUSE",
|
||||
rt->is_external ? rt->u.euse->name : rt->u.iuse->name,
|
||||
rt->prefix, ussd_code);
|
||||
return rt;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue