]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: guard against sysapi == NULL
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 13 Oct 2023 08:17:16 +0000 (10:17 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 13 Oct 2023 08:17:16 +0000 (10:17 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libmount/src/hook_mount.c

index f343ab92476fa9ced6fcefb132f7a2d8ea40f474..5699dbc42fa707bdfe9d6d6df9cc65e2a26d9068 100644 (file)
@@ -85,7 +85,8 @@ static void set_syscall_status_cxt_log(struct libmnt_context *cxt,
 
        if (!x) {
                api = get_sysapi(cxt);
-               debug_fs_fd_messages(api->fd_fs);
+               if (api)
+                       debug_fs_fd_messages(api->fd_fs);
        }
 }