chiark / gitweb /
Regression tests compile on systems without poll(2). Do not install
[adns.git] / src / query.c
index 3fab80c02f06f37cb2d897669642e52222d8c1b4..a35d8ba4bb799039ba4cf0a2b553857e8ce63ab3 100644 (file)
@@ -203,7 +203,7 @@ int adns_submit(adns_state ads,
   const char *p;
 
   typei= adns__findtype(type);
-  if (!typei) return adns_s_unknownrrtype;
+  if (!typei) return ENOSYS;
 
   r= gettimeofday(&now,0); if (r) goto x_errno;
   qu= query_alloc(ads,typei,flags,now); if (!qu) goto x_errno;