From: Adam Dickmeiss Date: Mon, 13 Aug 2012 10:55:12 +0000 (+0200) Subject: yaz-ztest: fix bad usage of session handle X-Git-Tag: v4.2.36~6 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=0d16731ebba3c4988791de9d770eccff725f5bda;p=yaz-moved-to-github.git yaz-ztest: fix bad usage of session handle Bug was introduced when result sets were saved (271a9c83). --- diff --git a/ztest/ztest.c b/ztest/ztest.c index 97b8e79..c2b3abd 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -418,13 +418,6 @@ int ztest_search(void *handle, bend_search_rr *rr) /* this huge function handles extended services */ int ztest_esrequest(void *handle, bend_esrequest_rr *rr) { - /* user-defined handle - created in bend_init */ - int *counter = (int*) handle; - - yaz_log(log_level, "ESRequest no %d", *counter); - - (*counter)++; - if (rr->esr->packageName) yaz_log(log_level, "packagename: %s", rr->esr->packageName); yaz_log(log_level, "Waitaction: " ODR_INT_PRINTF, *rr->esr->waitAction);