瀏覽代碼

* Fixed reference to TXT record string value.

Juha Heinanen 16 年之前
父節點
當前提交
ab40d3447b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/enum/enum.c

+ 1 - 1
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)) {