mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
prevent valgrind errors where we print unitialised values on control errors
(This used to be ctdb commit ababd8aba2f9c13aaa1b623b8a76c2f98bb94dd4)
This commit is contained in:
parent
b3bcb42774
commit
e7ac67ccc6
@ -884,6 +884,13 @@ int ctdb_control_recv(struct ctdb_context *ctdb,
|
||||
{
|
||||
TALLOC_CTX *tmp_ctx;
|
||||
|
||||
if (status != NULL) {
|
||||
*status = -1;
|
||||
}
|
||||
if (errormsg != NULL) {
|
||||
*errormsg = NULL;
|
||||
}
|
||||
|
||||
if (state == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user