| Index: trunk/src/net/http/http_auth_handler_ntlm.cc
|
| ===================================================================
|
| --- trunk/src/net/http/http_auth_handler_ntlm.cc (revision 239920)
|
| +++ trunk/src/net/http/http_auth_handler_ntlm.cc (working copy)
|
| @@ -89,9 +89,13 @@
|
| // Base64 encode data in output buffer and prepend "NTLM ".
|
| std::string encode_input(static_cast<char*>(out_buf), out_buf_len);
|
| std::string encode_output;
|
| - base::Base64Encode(encode_input, &encode_output);
|
| + bool base64_rv = base::Base64Encode(encode_input, &encode_output);
|
| // OK, we are done with |out_buf|
|
| free(out_buf);
|
| + if (!base64_rv) {
|
| + LOG(ERROR) << "Unexpected problem Base64 encoding.";
|
| + return ERR_UNEXPECTED;
|
| + }
|
| *auth_token = std::string("NTLM ") + encode_output;
|
| return OK;
|
| #endif
|
|
|