Added hack for record in ANY
authorSebastian Hammer <quinn@indexdata.com>
Mon, 20 Feb 1995 18:58:05 +0000 (18:58 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Mon, 20 Feb 1995 18:58:05 +0000 (18:58 +0000)
zlayer/zaccess.c

index 83bc8b4..ea774ea 100644 (file)
@@ -2,7 +2,10 @@
  * Europagate, 1995
  *
  * $Log: zaccess.c,v $
- * Revision 1.10  1995/02/20 18:19:30  quinn
+ * Revision 1.11  1995/02/20 18:58:05  quinn
+ * Added hack for record in ANY
+ *
+ * Revision 1.10  1995/02/20  18:19:30  quinn
  * More relaxed about record types.
  *
  * Revision 1.9  1995/02/17  15:17:51  quinn
@@ -350,8 +353,14 @@ void get_responserecords(zass_record ***p, DATA_DIR *rec)
        align = External_GetEncodingAligned(ext);
        if (!align)
        {
-           gw_log(GW_LOG_WARN, ZASS_TYPE, "AAAARRRGH!! Enough of these log-messages!!!");
-           return;
+           gw_log(GW_LOG_WARN, ZASS_TYPE, "Record wasn't octet-aligned");
+           align = External_GetEncodingSingle(ext);
+           if (!align)
+           {
+               gw_log(GW_LOG_WARN, ZASS_TYPE, "Record wasn't ANY");
+               return;
+           }
+           align = align->ptr.child;
        }
        if (!((**p)->record = malloc(align->count + 1)))
        {