Don't set syntax to none if bad syntax is supplied
[yaz-moved-to-github.git] / zutil / zoom-c.c
index cf5b67f..aaf9c90 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 2000-2003, Index Data
  * See the file LICENSE for details.
  *
- * $Id: zoom-c.c,v 1.13 2003-01-06 08:20:29 adam Exp $
+ * $Id: zoom-c.c,v 1.16 2003-01-24 12:15:45 adam Exp $
  *
  * ZOOM layer for C, connections, result sets, queries.
  */
@@ -958,9 +958,9 @@ static zoom_ret ZOOM_connection_send_search (ZOOM_connection c)
     {
        /* Regular piggyback - do it unless we're going to do sort */
        *search_req->largeSetLowerBound = 2000000000;
-       *search_req->smallSetUpperBound = r->count;
+       *search_req->smallSetUpperBound = 0;
        *search_req->mediumSetPresentNumber = r->count;
-       smallSetElementSetName = 0;  /* no need to provide this */
+       smallSetElementSetName = 0;
     }
     else
     {
@@ -2745,7 +2745,7 @@ ZOOM_event (int no, ZOOM_connection *cs)
        {
             ZOOM_Event event = ZOOM_Event_create(ZOOM_EVENT_TIMEOUT);
            /* timeout and this connection was waiting */
-           set_ZOOM_error(c, ZOOM_ERROR_TIMEOUT);
+           set_ZOOM_error(c, ZOOM_ERROR_TIMEOUT, 0);
             do_close (c);
             yaz_log (LOG_DEBUG, "timeout");
             ZOOM_connection_put_event(c, event);