diff --git a/tools/tpm/policy_sign.c b/tools/tpm/policy_sign.c index 0e111c610..ffd4ce37e 100644 --- a/tools/tpm/policy_sign.c +++ b/tools/tpm/policy_sign.c @@ -29,7 +29,6 @@ #include #include #include -#include #include "tpm.h" /* Default PCR (test) */ @@ -83,7 +82,7 @@ static int loadFile(const char* fname, byte** buf, size_t* bufLen) ret = MEMORY_E; } else if (*buf != NULL && fileSz > (ssize_t)*bufLen) { - ret = INPUT_SIZE_E; + ret = BUFFER_E; } *bufLen = (size_t)fileSz; if (ret == 0) {