From ce70ff7c4cd43fc23cbddbe4d09c56426a709fc7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 29 Oct 2019 08:42:59 +0100 Subject: [PATCH] terminal: return NULL on error in terminal_signal_init Callers expect a NULL on error, and with PR #3171 marking the pointer as __do_free, we now return a pointer to freed memory here otherwise. Signed-off-by: Wolfgang Bumiller --- src/lxc/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/terminal.c b/src/lxc/terminal.c index 13953cf79..126eea475 100644 --- a/src/lxc/terminal.c +++ b/src/lxc/terminal.c @@ -174,7 +174,7 @@ on_error: ts->sigfd = -1; } - return ts; + return NULL; } void lxc_terminal_signal_fini(struct lxc_terminal *terminal) -- 2.47.2