From: Adam Dickmeiss Date: Wed, 5 Jul 1995 11:08:33 +0000 (+0000) Subject: Bug fix in init request. X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=9b83ceee894673ccb3ea0e2d4dbae14a051e820d;p=egate.git Bug fix in init request. --- diff --git a/zlayer-yaz/zaccess.c b/zlayer-yaz/zaccess.c index f9e93ad..16d7695 100644 --- a/zlayer-yaz/zaccess.c +++ b/zlayer-yaz/zaccess.c @@ -47,7 +47,10 @@ * Z39.50 API for the Email gateway - YAZ version * * $Log: zaccess.c,v $ - * Revision 1.1 1995/07/03 08:21:31 adam + * Revision 1.2 1995/07/05 11:08:33 adam + * Bug fix in init request. + * + * Revision 1.1 1995/07/03 08:21:31 adam * Yaz layer moved to new sub directory. zaccess aligned with new * YAZ version (1.0b). * @@ -181,6 +184,13 @@ static int send_initreq(struct zass *p, char *auth) req->preferredMessageSize = &p->preferredmessagesize; req->maximumRecordSize = &p->maxrecordsize; + ODR_MASK_SET(req->options, Z_Options_search); + ODR_MASK_SET(req->options, Z_Options_present); + ODR_MASK_SET(req->options, Z_Options_namedResultSets); + + ODR_MASK_SET(req->protocolVersion, Z_ProtocolVersion_1); + ODR_MASK_SET(req->protocolVersion, Z_ProtocolVersion_2); + if (auth) { req->idAuthentication = &idauth;