ctdb-eventd: Fix CID 1438155
authorAmitay Isaacs <amitay@gmail.com>
Tue, 31 Jul 2018 07:44:25 +0000 (17:44 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 3 Aug 2018 09:14:01 +0000 (11:14 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13554

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Aug  3 11:14:01 CEST 2018 on sn-devel-144

ctdb/event/event_tool.c

index 4768c678b130ccba2b41c3953bbd66ee7ad1feda..f18deb8d5b1b1d7ba83ccf3cf9770148110ad0f4 100644 (file)
@@ -320,7 +320,7 @@ static int event_command_script_list(TALLOC_CTX *mem_ctx,
 
        subdir = talloc_asprintf(mem_ctx, "events/%s", argv[0]);
        if (subdir == NULL) {
-               ret = ENOMEM;
+               return ENOMEM;
        }
 
        data_dir = path_datadir_append(mem_ctx, subdir);