summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-01-02 00:55:00 +0000
committerColin Watson <cjwatson@debian.org>2010-01-02 00:55:00 +0000
commitdcb1c932a27f8b4dbc1de7ecd2567c0b59f3cbb4 (patch)
tree126e9475298e62ca2124a88cd66c08deb958813b /openbsd-compat
parentc4ee4042fcb3bfa23696ad73a6319363cd625740 (diff)
Initialise sc to NULL in ssh_selinux_getctxbyname (thanks, Václav Ovsík;
closes: #498684).
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/port-linux.c2
1 files changed, 1 insertions, 1 deletions
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)
69static security_context_t 69static security_context_t
70ssh_selinux_getctxbyname(char *pwname) 70ssh_selinux_getctxbyname(char *pwname)
71{ 71{
72 security_context_t sc; 72 security_context_t sc = NULL;
73 char *sename = NULL, *role = NULL, *lvl = NULL; 73 char *sename = NULL, *role = NULL, *lvl = NULL;
74 int r; 74 int r;
75 75