1
0
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:
Andrew Tridgell 2008-07-04 17:15:06 +10:00
parent b3bcb42774
commit e7ac67ccc6

View File

@ -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;
}