Browse code

core: resolve - use macro value for comparison

Daniel-Constantin Mierla authored on 16/03/2022 07:35:24
Showing 1 changed files
... ...
@@ -841,7 +841,7 @@ again:
841 841
 #endif
842 842
 		p+=skip;
843 843
 		rec_name_len=strlen(rec_name);
844
-		if (unlikely(rec_name_len>255)){
844
+		if (unlikely(rec_name_len>MAX_DNS_NAME-2)){
845 845
 			LM_ERR("dn_expand(rec_name): name too long (%d)\n",
846 846
 					rec_name_len);
847 847
 			goto error;