From 7a49cd087506d3c9d3b290e749b3191988880bbb Mon Sep 17 00:00:00 2001 From: ydong10 Date: Tue, 10 Apr 2012 02:27:05 +0000 Subject: Update code to avoid potential access violation. Signed-off-by: Dong Eric Reviewed-by: Ye Ting Reviewed-by: Ouyang Qian git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13175 6f19259b-4bc3-4df7-8a09-765794883524 --- NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c | 3 ++- NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'NetworkPkg/Mtftp6Dxe') diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c b/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c index 07a86d6a36..348a8f29c7 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c @@ -1,7 +1,7 @@ /** @file Mtftp6 Rrq process functions implementation. - Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -477,6 +477,7 @@ Mtftp6RrqHandleOack ( if (EFI_ERROR (Status)) { return Status; } + ASSERT (Options != NULL); // // Parse the extensive options in the packet. diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c b/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c index 69ef4d2093..a6baaaba40 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c @@ -1,7 +1,7 @@ /** @file Mtftp6 Wrq process functions implementation. - Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -315,6 +315,7 @@ Mtftp6WrqHandleOack ( if (EFI_ERROR (Status)) { return Status; } + ASSERT (Options != NULL); Status = Mtftp6ParseExtensionOption (Options, Count, FALSE, &ExtInfo); -- cgit v1.2.3