summaryrefslogtreecommitdiff
path: root/datapath-windows
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2017-11-06 17:33:39 +0200
committerAlin Gabriel Serdean <aserdean@ovn.org>2017-11-29 16:51:19 +0200
commitbf7e459bf4d216678d2e68a607141eb62f5649af (patch)
treef99c0b8fbbd83e91f0df533578187aeb1f502f3c /datapath-windows
parent7d20979a88b37c580346d278663cde0d4c78dae9 (diff)
downloadopenvswitch-bf7e459bf4d216678d2e68a607141eb62f5649af.tar.gz
datapath-windows: Fix possible NULL dereference in IpFragment
If we can't allocate the NBL just go to the cleanup sequence. Found using WDK 10 static code analysis. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Shashank Ram <shashank08@gmail.com>
Diffstat (limited to 'datapath-windows')
-rw-r--r--datapath-windows/ovsext/IpFragment.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/datapath-windows/ovsext/IpFragment.c b/datapath-windows/ovsext/IpFragment.c
index ad48834a6..3d5277ac4 100644
--- a/datapath-windows/ovsext/IpFragment.c
+++ b/datapath-windows/ovsext/IpFragment.c
@@ -206,6 +206,7 @@ OvsIpv4Reassemble(POVS_SWITCH_CONTEXT switchContext,
if (*newNbl == NULL) {
OVS_LOG_ERROR("Insufficient resources, failed to allocate newNbl");
status = NDIS_STATUS_RESOURCES;
+ goto cleanup;
}
/* Complete the fragment NBL */