summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnand Prasad <anprasad@nvidia.com>2016-01-07 17:33:55 -0800
committerDavid Riley <davidriley@google.com>2016-01-13 14:38:44 -0800
commit70a35b8b84dcae0fd80d538153370dcb58c19459 (patch)
tree3d17b410174fe49bb1e1e52567406411ce21f626
parent78ae7ba21055fbb0fb39aba54b2444bd0fbccf6a (diff)
downloadgatekeeper-70a35b8b84dcae0fd80d538153370dcb58c19459.tar.gz
Fix default constructor
request_reenroll was reporting garbage data because it was not initialized when used with the default constructor. Change-Id: Ifd06e008fe058aee8bbe9f34d1cdb4ac75c7a636
-rw-r--r--gatekeeper_messages.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gatekeeper_messages.cpp b/gatekeeper_messages.cpp
index c803666..fc76d5e 100644
--- a/gatekeeper_messages.cpp
+++ b/gatekeeper_messages.cpp
@@ -199,6 +199,7 @@ VerifyResponse::VerifyResponse(uint32_t user_id, SizedBuffer *auth_token) {
}
VerifyResponse::VerifyResponse() {
+ request_reenroll = false;
memset_s(&auth_token, 0, sizeof(auth_token));
};