X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsrwutil.c;h=3b052e956aa9281ddd0e3fffa96939e074ff7b42;hp=f7c8a2ff11f1ad824cfe495372e5fbface1fd839;hb=e4e5f0bfaa1fcb5eb12cc37df216352df226b01e;hpb=5242cb5a8634bfa38b9333ff7f903e718ac6e292 diff --git a/src/srwutil.c b/src/srwutil.c index f7c8a2f..3b052e9 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ /** @@ -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)