diff options
author | eea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-07 00:03:33 +0000 |
---|---|---|
committer | eea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-07 00:03:33 +0000 |
commit | 3aaf850347c4cd5751e5c9fb9498787cdf392432 (patch) | |
tree | b9cea7d77d05462b29bc551335150d9298f1e856 /ace/Remote_Tokens.cpp | |
parent | b865e170fd3c848d0331fff799f6ad390814b3ca (diff) | |
download | ATCD-3aaf850347c4cd5751e5c9fb9498787cdf392432.tar.gz |
Files Token_Request_Reply.{h, cpp, i}
Added ACE_TOKEN_REQUEST_HEADER_SIZE to represent the size of the
fixed-length portion of ACE_Token_Request's Transfer struct, and
changed length calculations accordingly. Added two bytes to the
buffer to accomodate '\0' values after the strings.
File Remote_Tokens.cpp
In ACE_Remote_Token_Proxy::request_reply, changed the check for
failure when receiving the reply.
Diffstat (limited to 'ace/Remote_Tokens.cpp')
-rw-r--r-- | ace/Remote_Tokens.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/Remote_Tokens.cpp b/ace/Remote_Tokens.cpp index d9476c4ee15..23c8426e0e6 100644 --- a/ace/Remote_Tokens.cpp +++ b/ace/Remote_Tokens.cpp @@ -161,7 +161,7 @@ ACE_Remote_Token_Proxy::request_reply (ACE_Token_Request &request, // Receive reply via blocking read. - if (peer->recv (&reply, sizeof reply) == -1) + if (peer->recv (&reply, sizeof reply) != sizeof reply) ACE_ERROR_RETURN ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("recv failed")), -1); if (reply.decode () == -1) |