Smallish
[yaz-moved-to-github.git] / server / seshigh.c
index bce072b..64c91ec 100644 (file)
@@ -4,7 +4,13 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: seshigh.c,v $
- * Revision 1.39  1995-06-27 13:21:00  quinn
+ * Revision 1.41  1995-08-02 10:23:06  quinn
+ * Smallish
+ *
+ * Revision 1.40  1995/07/31  14:34:26  quinn
+ * Fixed bug in process_searchResponse (numberOfRecordsReturned).
+ *
+ * Revision 1.39  1995/06/27  13:21:00  quinn
  * SUTRS support
  *
  * Revision 1.38  1995/06/19  12:39:11  quinn
@@ -331,6 +337,7 @@ void ir_session(IOCHAN h, int event)
            req = request_get(); /* get a new request structure */
            odr_reset(assoc->decode);
            odr_setbuf(assoc->decode, assoc->input_buffer, res, 0);
+odr_dumpBER(log_file(), assoc->input_buffer, res);
            if (!z_APDU(assoc->decode, &req->request, 0))
            {
                logf(LOG_LOG, "ODR error on incoming PDU: %s",
@@ -935,9 +942,9 @@ static Z_APDU *response_searchRequest(association *assoc, request *reqb,
     }
     else
     {
-       int toget;
+       static int toget;
        Z_ElementSetNames *setnames;
-       int presst = 0;
+       static int presst = 0;
 
        resp.records = 0;
        resp.resultCount = &bsrt->hits;