| Index: trunk/src/net/third_party/mozilla_security_manager/nsKeygenHandler.cpp
|
| ===================================================================
|
| --- trunk/src/net/third_party/mozilla_security_manager/nsKeygenHandler.cpp (revision 239920)
|
| +++ trunk/src/net/third_party/mozilla_security_manager/nsKeygenHandler.cpp (working copy)
|
| @@ -215,9 +215,13 @@
|
| }
|
|
|
| // Convert the signed public key and challenge into base64/ascii.
|
| - base::Base64Encode(
|
| - std::string(reinterpret_cast<char*>(signedItem.data), signedItem.len),
|
| - &result_blob);
|
| + if (!base::Base64Encode(std::string(reinterpret_cast<char*>(signedItem.data),
|
| + signedItem.len),
|
| + &result_blob)) {
|
| + LOG(ERROR) << "Couldn't convert signed public key into base64";
|
| + isSuccess = false;
|
| + goto failure;
|
| + }
|
|
|
| failure:
|
| if (!isSuccess) {
|
|
|