| Index: trunk/src/google_apis/cup/client_update_protocol.cc
|
| ===================================================================
|
| --- trunk/src/google_apis/cup/client_update_protocol.cc (revision 239920)
|
| +++ trunk/src/google_apis/cup/client_update_protocol.cc (working copy)
|
| @@ -122,7 +122,8 @@
|
| // needed. Call the standard Base64 encoder/decoder and then apply fixups.
|
| std::string UrlSafeB64Encode(const std::vector<uint8>& data) {
|
| std::string result;
|
| - base::Base64Encode(ByteVectorToSP(data), &result);
|
| + if (!base::Base64Encode(ByteVectorToSP(data), &result))
|
| + return std::string();
|
|
|
| // Do an tr|+/|-_| on the output, and strip any '=' padding.
|
| for (std::string::iterator it = result.begin(); it != result.end(); ++it) {
|
| @@ -301,3 +302,4 @@
|
|
|
| return true;
|
| }
|
| +
|
|
|