X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsrwutil.c;h=c0e496ba13a384f887bae83e4939e634491b4e93;hp=f7c8a2ff11f1ad824cfe495372e5fbface1fd839;hb=c2981f9eaa8aaf7d04e40f74a99415942bca7101;hpb=028d5f9639695599a98f59ef8a59e7f03bc135f7 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)