Module: sip-router
Branch: master
Commit: ab40d3447b6e0501e3882a04d533f550e8a54453
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ab40d34…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Mon Apr 20 09:36:55 2009 +0300
* Fixed reference to TXT record string value.
---
modules/enum/enum.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/enum/enum.c b/modules/enum/enum.c
index c8bbd7f..1477a4f 100644
--- a/modules/enum/enum.c
+++ b/modules/enum/enum.c
@@ -880,7 +880,7 @@ int i_enum_query_2(struct sip_msg* _msg, char* _suffix, char*
_service)
LM_DBG("TXT found for %s. Defaulting to %d\n",
name, cc_len);
} else {
- sdl = atoi(((struct txt_rdata*)head->rdata)->txt);
+ sdl = atoi(((struct txt_rdata*)head->rdata)->txt[0].cstr);
LM_DBG("TXT record for %s is %d.\n", name, sdl);
if ((sdl < 0) || (sdl > 10)) {