Browse code

core: skip get_record for DNS extensions e.g. for EDNS0 (GH #2087)

Henning Westerholt authored on 01/10/2019 14:38:20
Showing 1 changed files
... ...
@@ -951,6 +951,12 @@ again:
951 951
 				*last=rd;
952 952
 				last=&(rd->next);
953 953
 				break;
954
+			case T_OPT:
955
+				/* skip DNS extensions, e.g. EDNS0 */
956
+				rd->rdata=0;
957
+				*last=rd;
958
+				last=&(rd->next);
959
+				break;
954 960
 			default:
955 961
 				LM_ERR("unknown type %d\n", rtype);
956 962
 				rd->rdata=0;