From dcb1c932a27f8b4dbc1de7ecd2567c0b59f3cbb4 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sat, 2 Jan 2010 00:55:00 +0000 Subject: Initialise sc to NULL in ssh_selinux_getctxbyname (thanks, Václav Ovsík; closes: #498684). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/changelog | 2 ++ openbsd-compat/port-linux.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 0b688f8ca..5fbc487b5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -35,6 +35,8 @@ openssh (1:5.2p1-1) UNRELEASED; urgency=low * Add debian/README.source with instructions on bzr handling. * Make ChrootDirectory work with SELinux (thanks, Russell Coker; closes: #556644). + * Initialise sc to NULL in ssh_selinux_getctxbyname (thanks, Václav Ovsík; + closes: #498684). -- Colin Watson Thu, 12 Nov 2009 21:31:44 +0000 diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c index b7142ba90..9cb58e369 100644 --- a/openbsd-compat/port-linux.c +++ b/openbsd-compat/port-linux.c @@ -69,7 +69,7 @@ ssh_selinux_enabled(void) static security_context_t ssh_selinux_getctxbyname(char *pwname) { - security_context_t sc; + security_context_t sc = NULL; char *sename = NULL, *role = NULL, *lvl = NULL; int r; -- cgit v1.2.3