diff options
author | marina <marina@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-12-05 22:24:51 +0000 |
---|---|---|
committer | marina <marina@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-12-05 22:24:51 +0000 |
commit | 7bad3cf21f7f788f5177d2ce3c1848492dce4cd6 (patch) | |
tree | 6544e1c91f0cb4494ec5d0c16b33929756017e48 | |
parent | 193e4309b2951b3a69d34b58eef1bd974e5483db (diff) | |
download | ATCD-7bad3cf21f7f788f5177d2ce3c1848492dce4cd6.tar.gz |
ChangeLogTag:Tue Dec 5 15:47:23 2000 Marina Spivak <marina@cs.wustl.edu>
-rw-r--r-- | TAO/ChangeLogs/ChangeLog-02a | 2 | ||||
-rw-r--r-- | TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp | 6 | ||||
-rw-r--r-- | TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.h | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a index 08b05129a9d..5a9e08c99c9 100644 --- a/TAO/ChangeLogs/ChangeLog-02a +++ b/TAO/ChangeLogs/ChangeLog-02a @@ -6,6 +6,8 @@ Tue Dec 5 15:47:23 2000 Marina Spivak <marina@cs.wustl.edu> * tao/Strategies/UIOP_Profile.cpp (encode_endpoints) * tao/Strategies/SHMIOP_Profile.h (encode_endpoints) * tao/Strategies/SHMIOP_Profile.cpp (encode_endpoints) + * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.h (encode_endpoints) + * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp (encode_endpoints) * tao/PortableServer/RT_Acceptor_Filters.cpp (fill_mprofile): Added error checking. diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp index 6711f7c680f..d6f4ed04ef5 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp @@ -242,8 +242,10 @@ TAO_SSLIOP_Profile::encode_endpoints (void) // Encode the data structure. TAO_OutputCDR out_cdr; - out_cdr << ACE_OutputCDR::from_boolean (TAO_ENCAP_BYTE_ORDER); - out_cdr << endpoints; + if ((out_cdr << ACE_OutputCDR::from_boolean (TAO_ENCAP_BYTE_ORDER) + == 0) + || (out_cdr << endpoints) == 0) + return -1; CORBA::ULong length = out_cdr.total_length (); IOP::TaggedComponent tagged_component; diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.h index b502a6a63e4..a280cfb32e9 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.h +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.h @@ -83,6 +83,7 @@ public: // Encodes this profile's endpoints into a tagged component. // This is done only if RTCORBA is enabled, since currently this is // the only case when we have more than one endpoint per profile. + // Return 0 on success, -1 on failure. // // SSL endpoints are transmitted using TAO-proprietory tagged component. // Component tag is TAO_TAG_SSL_ENDPOINTS and component data is an |