| Index: trunk/src/net/http/http_auth_gssapi_posix.cc
|
| ===================================================================
|
| --- trunk/src/net/http/http_auth_gssapi_posix.cc (revision 239920)
|
| +++ trunk/src/net/http/http_auth_gssapi_posix.cc (working copy)
|
| @@ -734,7 +734,11 @@
|
| std::string encode_input(static_cast<char*>(output_token.value),
|
| output_token.length);
|
| std::string encode_output;
|
| - base::Base64Encode(encode_input, &encode_output);
|
| + bool base64_rv = base::Base64Encode(encode_input, &encode_output);
|
| + if (!base64_rv) {
|
| + LOG(ERROR) << "Base64 encoding of auth token failed.";
|
| + return ERR_ENCODING_CONVERSION_FAILED;
|
| + }
|
| *auth_token = scheme_ + " " + encode_output;
|
| return OK;
|
| }
|
|
|