summaryrefslogtreecommitdiff
path: root/include/pam_authenticate.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2019-03-25 22:25:26 +0300
committerEd Tanous <ed.tanous@intel.com>2019-03-25 22:25:26 +0300
commitb01bf2991955ef267ce2be8e7a18eac984990de8 (patch)
treef34f5fe0ce9c786ddee196f5082e46090c0ccfcf /include/pam_authenticate.hpp
parent6ea007a2faec52ad62680015d2a3f00371a1e351 (diff)
downloadbmcweb-b01bf2991955ef267ce2be8e7a18eac984990de8.tar.xz
Revert "bmcweb: Fix a bunch of warnings"
This reverts commit 6ea007a2faec52ad62680015d2a3f00371a1e351. Reason for revert: Reports of bmcweb seg faults. Change-Id: I408f1bb29c2f8e427a6621cdaac8c31b847ebf06
Diffstat (limited to 'include/pam_authenticate.hpp')
-rw-r--r--include/pam_authenticate.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pam_authenticate.hpp b/include/pam_authenticate.hpp
index 1469aef728..f211a29ec7 100644
--- a/include/pam_authenticate.hpp
+++ b/include/pam_authenticate.hpp
@@ -25,7 +25,7 @@ inline int pamFunctionConversation(int numMsg, const struct pam_message** msg,
std::strcpy(pass, appPass);
*resp = reinterpret_cast<pam_response*>(
- calloc(static_cast<size_t>(numMsg), sizeof(struct pam_response)));
+ calloc(numMsg, sizeof(struct pam_response)));
if (resp == nullptr)
{