From: Sebastian Hammer Date: Wed, 3 May 1995 10:15:43 +0000 (+0000) Subject: Fixed bug in the get_record loop - crashed when diagrec was received. X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=57e272fe41c7ca6d8a27e13e36233cbc2b8addb2;p=egate.git Fixed bug in the get_record loop - crashed when diagrec was received. --- diff --git a/zlayer/zaccess-yaz.c b/zlayer/zaccess-yaz.c index 2fa8783..b64eedb 100644 --- a/zlayer/zaccess-yaz.c +++ b/zlayer/zaccess-yaz.c @@ -4,7 +4,10 @@ * Z39.50 API for the Email gateway - YAZ version * * $Log: zaccess-yaz.c,v $ - * Revision 1.8 1995/04/28 14:18:38 quinn + * Revision 1.9 1995/05/03 10:15:43 quinn + * Fixed bug in the get_record loop - crashed when diagrec was received. + * + * Revision 1.8 1995/04/28 14:18:38 quinn * *** empty log message *** * * Revision 1.7 1995/04/21 16:29:32 quinn @@ -510,8 +513,8 @@ void get_responserecords(zass_record ***p, Z_NamePlusRecordList *recs) gw_log(ZASS_DEBUG, ZASS_TYPE, "Got a record of %d bytes", r->u.octet_aligned->len); } + (*p) = &(**p)->next; } - (*p) = &(**p)->next; } }