From: Adam Dickmeiss Date: Tue, 17 Jan 2006 16:56:48 +0000 (+0000) Subject: In create_presentResponse, set status to failure for errors X-Git-Tag: YP2.0.0.2~41 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=84e8420d3ac503078b37b947b5bc71fa2fe56801;p=metaproxy-moved-to-github.git In create_presentResponse, set status to failure for errors --- diff --git a/src/util.cpp b/src/util.cpp index 26f1edb..38fd9e2 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1,4 +1,4 @@ -/* $Id: util.cpp,v 1.7 2006-01-17 16:43:22 adam Exp $ +/* $Id: util.cpp,v 1.8 2006-01-17 16:56:48 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -246,6 +246,7 @@ Z_APDU *yp2::odr::create_presentResponse(Z_APDU *in_apdu, rec->which = Z_Records_NSD; rec->u.nonSurrogateDiagnostic = zget_DefaultDiagFormat(m_odr, error, addinfo); + *apdu->u.presentResponse->presentStatus = Z_PresentStatus_failure; } return apdu; }