소스 검색

* 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)) {