Paul Durrant
2018-10-30 15:42:37 UTC
The Context field is not being NULLed out, so the zero memory check fails.
This patch adds the necessary NULL assignments.
Signed-off-by: Paul Durrant <***@citrix.com>
---
src/xencons/pdo.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/xencons/pdo.c b/src/xencons/pdo.c
index 3b483a5..fde3d3e 100644
--- a/src/xencons/pdo.c
+++ b/src/xencons/pdo.c
@@ -2002,6 +2002,8 @@ fail6:
else
FrontendDestroy(Pdo->Context);
+ Pdo->Context = NULL;
+
Pdo->IsDefault = FALSE;
fail5:
@@ -2077,6 +2079,8 @@ PdoDestroy(
else
FrontendDestroy(Pdo->Context);
+ Pdo->Context = NULL;
+
Pdo->IsDefault = FALSE;
RtlFreeUnicodeString(&Pdo->Dx->Link);
This patch adds the necessary NULL assignments.
Signed-off-by: Paul Durrant <***@citrix.com>
---
src/xencons/pdo.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/xencons/pdo.c b/src/xencons/pdo.c
index 3b483a5..fde3d3e 100644
--- a/src/xencons/pdo.c
+++ b/src/xencons/pdo.c
@@ -2002,6 +2002,8 @@ fail6:
else
FrontendDestroy(Pdo->Context);
+ Pdo->Context = NULL;
+
Pdo->IsDefault = FALSE;
fail5:
@@ -2077,6 +2079,8 @@ PdoDestroy(
else
FrontendDestroy(Pdo->Context);
+ Pdo->Context = NULL;
+
Pdo->IsDefault = FALSE;
RtlFreeUnicodeString(&Pdo->Dx->Link);
--
2.5.3
2.5.3