summaryrefslogtreecommitdiffstats
path: root/NetworkPkg
diff options
context:
space:
mode:
authorMike Beaton <mjsbeaton@gmail.com>2024-04-06 23:23:40 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-27 16:57:36 +0000
commit8b295e0aad55cdf0c20eba6398862832ce188a0c (patch)
tree4ee7e0f21f987f04b44319e945a91c96d2a409c6 /NetworkPkg
parente548e1cd73fe16b59ff9b5f11b37456e4c3de10f (diff)
downloadedk2-8b295e0aad55cdf0c20eba6398862832ce188a0c.tar.gz
edk2-8b295e0aad55cdf0c20eba6398862832ce188a0c.tar.bz2
edk2-8b295e0aad55cdf0c20eba6398862832ce188a0c.zip
NetworkPkg/Dhcp6Dxe: Fix extraneous parenthesessecurity-advisory/cve-2024-38796/advisory
Without this change we get: error: equality comparison with extraneous parentheses when building with -D NETWORK_IP6_ENABLE on XCODE5. Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
Diffstat (limited to 'NetworkPkg')
-rw-r--r--NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c b/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c
index f38e3ee3fe..f72bc93a68 100644
--- a/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c
+++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c
@@ -1001,7 +1001,7 @@ Dhcp6AppendETOption (
return EFI_INVALID_PARAMETER;
}
- if ((Elapsed == NULL)) {
+ if (Elapsed == NULL) {
return EFI_INVALID_PARAMETER;
}