diff options
Diffstat (limited to 'security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c')
-rw-r--r-- | security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c b/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c index 9b4026ebff50..00469154bfaa 100644 --- a/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c +++ b/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c @@ -1,17 +1,17 @@ ---- src/tpm_mgmt/tpm_nvcommon.c.orig 2011-08-17 12:20:35 UTC +--- src/tpm_mgmt/tpm_nvcommon.c.orig 2017-02-21 01:23:57 UTC +++ src/tpm_mgmt/tpm_nvcommon.c -@@ -140,8 +140,8 @@ int parseStringWithValues(const char *aA +@@ -140,8 +140,8 @@ int parseStringWithValues(const char *aArg, aArg); return -1; } -- if (!aArg[offset+numbytes] == '|' && -- !aArg[offset+numbytes] == 0) { -+ if (aArg[offset+numbytes] != '|' && +- if (aArg[offset+numbytes] == '|' || +- aArg[offset+numbytes] == 0) { ++ if (aArg[offset+numbytes] != '|' || + aArg[offset+numbytes] != 0) { logError(_("Illegal character following " "hexadecimal number in %s\n"), aArg + offset); -@@ -164,8 +164,8 @@ int parseStringWithValues(const char *aA +@@ -164,8 +164,8 @@ int parseStringWithValues(const char *aArg, return -1; } |