33 lines
790 B
Diff
33 lines
790 B
Diff
From 9ab2ff6874db0182714d8c09dceda9ee22e177f8 Mon Sep 17 00:00:00 2001
|
|
From: zhangtianxing <zhangtianxing3@huawei.com>
|
|
Date: Fri, 6 Sep 2019 19:09:13 +0800
|
|
Subject: [PATCH] huawei fix the core file problem
|
|
|
|
Signed-off-by: zhangtianxing <zhangtianxing3@huawei.com>
|
|
---
|
|
src/haveged.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/src/haveged.c b/src/haveged.c
|
|
index d629e17..7496f56 100644
|
|
--- a/src/haveged.c
|
|
+++ b/src/haveged.c
|
|
@@ -351,6 +351,7 @@ int main(int argc, char **argv)
|
|
else run_daemon(handle);
|
|
#endif
|
|
havege_destroy(handle);
|
|
+ handle = NULL;
|
|
exit(0);
|
|
}
|
|
#ifndef NO_DAEMON
|
|
@@ -513,6 +514,7 @@ static void error_exit( /* RETURN: nothing */
|
|
}
|
|
}
|
|
havege_destroy(handle);
|
|
+ handle = NULL;
|
|
exit(params->exit_code);
|
|
}
|
|
/**
|
|
--
|
|
1.8.3.1
|