From: Adam Dickmeiss Date: Thu, 4 Dec 2003 11:48:06 +0000 (+0000) Subject: Transfer decode memory to stream X-Git-Tag: YAZ.2.0.6~3 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=f52a29d87484996d9e18397b2bf07d28ad8cf99e;p=yaz-moved-to-github.git Transfer decode memory to stream --- diff --git a/src/seshigh.c b/src/seshigh.c index 880cad3..9d7db7e 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.3 2003-11-26 22:47:42 mike Exp $ + * $Id: seshigh.c,v 1.4 2003-12-04 11:48:06 adam Exp $ */ /* @@ -1589,7 +1589,7 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) assoc->init->implementation_name, odr_prepend(assoc->encode, "GFS", resp->implementationName)); - version = odr_strdup(assoc->encode, "$Revision: 1.3 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.4 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode, @@ -1926,6 +1926,7 @@ static Z_APDU *process_searchRequest(association *assoc, request *reqb, bsrr->basenames = req->databaseNames; bsrr->query = req->query; bsrr->stream = assoc->encode; + nmem_transfer(bsrr->stream->mem, reqb->request_mem); bsrr->decode = assoc->decode; bsrr->print = assoc->print; bsrr->errcode = 0;