From: Sebastian Hammer Date: Mon, 20 Feb 1995 18:58:05 +0000 (+0000) Subject: Added hack for record in ANY X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=fa1807dd17ca61f2eb3b1b9447913caf83355bcf;p=egate.git Added hack for record in ANY --- diff --git a/zlayer/zaccess.c b/zlayer/zaccess.c index 83bc8b4..ea774ea 100644 --- a/zlayer/zaccess.c +++ b/zlayer/zaccess.c @@ -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))) {