From: Adam Dickmeiss Date: Mon, 12 Nov 2012 14:51:25 +0000 (+0100) Subject: No need to report more than 10 unknown SRU args X-Git-Tag: v4.2.45~5^2 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=c2981f9eaa8aaf7d04e40f74a99415942bca7101;p=yaz-moved-to-github.git No need to report more than 10 unknown SRU args --- 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)