mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
7515f9eeb4
OpenSSL 1.1.x.
25 lines
870 B
C
25 lines
870 B
C
--- 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 *aArg,
|
|
aArg);
|
|
return -1;
|
|
}
|
|
- 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 *aArg,
|
|
return -1;
|
|
}
|
|
|
|
- if (!aArg[offset+numbytes] == '|' &&
|
|
- !aArg[offset+numbytes] == 0) {
|
|
+ if (aArg[offset+numbytes] != '|' &&
|
|
+ aArg[offset+numbytes] != 0) {
|
|
logError(_("Illegal character following decimal "
|
|
"number in %s\n"),
|
|
aArg + offset);
|