| Index: dart/runtime/bin/secure_socket.cc
|
| ===================================================================
|
| --- dart/runtime/bin/secure_socket.cc (revision 40429)
|
| +++ dart/runtime/bin/secure_socket.cc (working copy)
|
| @@ -942,7 +942,10 @@
|
| unsigned int len1;
|
| unsigned int len2;
|
| memio_Private* secret = memio_GetSecret(filter_);
|
| - memio_GetWriteParams(secret, &buf1, &len1, &buf2, &len2);
|
| + int status = memio_GetWriteParams(secret, &buf1, &len1, &buf2, &len2);
|
| + if (status != 0) {
|
| + return -1;
|
| + }
|
| int bytes_to_send =
|
| dart::Utils::Minimum(len1, static_cast<unsigned>(length));
|
| if (bytes_to_send > 0) {
|
|
|