From f3b0bfcf8c096cc3ff947e722e12d6127aec6232 Mon Sep 17 00:00:00 2001 From: elliott_c Date: Mon, 2 Apr 2007 15:11:35 +0000 Subject: ChangeLogTag: Mon Apr 2 15:11:24 UTC 2007 Chad Elliott --- ACE/ACEXML/apps/svcconf/Svcconf.cpp | 4 ++++ ACE/ChangeLog | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ACE/ACEXML/apps/svcconf/Svcconf.cpp b/ACE/ACEXML/apps/svcconf/Svcconf.cpp index 482970b1515..7fd69046ec3 100644 --- a/ACE/ACEXML/apps/svcconf/Svcconf.cpp +++ b/ACE/ACEXML/apps/svcconf/Svcconf.cpp @@ -101,6 +101,10 @@ ACEXML_Svcconf_Parser::parse_string (const ACE_TCHAR str[]) } ACEXML_CATCH (ACEXML_SAXException, ex) { + // If there was a problem parsing the stream, set the errno + // to EINVAL to indicate to upper levels that the stream was + // invalid. + ACE_OS::last_error (EINVAL); ex.print (); return -1; } diff --git a/ACE/ChangeLog b/ACE/ChangeLog index 96b57b1846e..c471b213fdf 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,10 @@ +Mon Apr 2 15:11:24 UTC 2007 Chad Elliott + + * ACEXML/apps/svcconf/Svcconf.cpp: + + As part of the fixes for Bug 2735, we must set errno to EINVAL + when a directive fails to parse. + Mon Apr 2 15:02:26 UTC 2007 Chad Elliott * ace/Service_Object.cpp: -- cgit v1.2.1