commit | 36fd44f67b5c98d9a262ad7c7fafc0cf53964a4c | [log] [tgz] |
---|---|---|
author | Vitaly Buka <vitalybuka@google.com> | Mon Jan 18 15:06:19 2016 -0800 |
committer | Vitaly Buka <vitalybuka@google.com> | Mon Jan 18 23:22:15 2016 +0000 |
tree | 6812852b3135d9c7f4a9923cf585e8bde3dffb5b | |
parent | ff06a7637355340167be2c2f82a9e0404ced8b9c [diff] |
Fix assigning error in SecurityManager Change-Id: I275aa91b6d1344a62679f528104022f508ee1bd0 Reviewed-on: https://weave-review.googlesource.com/2204 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
diff --git a/src/privet/security_manager.cc b/src/privet/security_manager.cc index 4cd9276..2a3dc08 100644 --- a/src/privet/security_manager.cc +++ b/src/privet/security_manager.cc
@@ -185,6 +185,9 @@ std::vector<uint8_t> auth_decoded; if (auth_type != AuthType::kAnonymous && !Base64Decode(auth_code, &auth_decoded)) { + Error::AddToPrintf(error, FROM_HERE, errors::kDomain, + errors::kInvalidAuthorization, + "Invalid auth_code encoding: %s", auth_code.c_str()); return false; }