From c2981f9eaa8aaf7d04e40f74a99415942bca7101 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 12 Nov 2012 15:51:25 +0100 Subject: [PATCH] No need to report more than 10 unknown SRU args --- src/srwutil.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/srwutil.c b/src/srwutil.c index f7c8a2f..c0e496b 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -466,8 +466,11 @@ int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, (*l)->next = 0; } else - yaz_add_srw_diagnostic(decode, diag, num_diag, - YAZ_SRW_UNSUPP_PARAMETER, n); + { + if (*num_diag < 10) + yaz_add_srw_diagnostic(decode, diag, num_diag, + YAZ_SRW_UNSUPP_PARAMETER, n); + } } } if (!version) -- 1.7.10.4