aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/selinux/ss/services.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index ca9154dc5d82..1e52356664d6 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -609,6 +609,9 @@ int security_sid_to_context(u32 sid, char **scontext, u32 *scontext_len)
609 struct context *context; 609 struct context *context;
610 int rc = 0; 610 int rc = 0;
611 611
612 *scontext = NULL;
613 *scontext_len = 0;
614
612 if (!ss_initialized) { 615 if (!ss_initialized) {
613 if (sid <= SECINITSID_NUM) { 616 if (sid <= SECINITSID_NUM) {
614 char *scontextp; 617 char *scontextp;