From a4f55a19af5ac2870f69b5240c60adc651111e02 Mon Sep 17 00:00:00 2001 From: Ralph Wuerthner Date: Mon, 10 Oct 2016 16:26:05 +0200 Subject: [PATCH] ctdb-conn: add missing variable initialization Avoid potential crash in TALLOC_FREE(hdr). Signed-off-by: Ralph Wuerthner Reviewed-by: Andreas Schneider Reviewed-by: Ralph Boehme (cherry picked from commit 4194c0797f78293fe48105ce5af70f36a3c233a8) --- source3/lib/ctdbd_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 04f6f2f..abdece8 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -919,7 +919,7 @@ int ctdbd_db_attach(struct ctdbd_connection *conn, int ctdbd_migrate(struct ctdbd_connection *conn, uint32_t db_id, TDB_DATA key) { struct ctdb_req_call_old req; - struct ctdb_req_header *hdr; + struct ctdb_req_header *hdr = NULL; struct iovec iov[2]; ssize_t nwritten; int ret; -- 2.10.0