summaryrefslogtreecommitdiff
path: root/dix/extension.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2006-08-02 20:29:59 -0400
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2006-08-02 20:29:59 -0400
commit96e45626c43b7674b66e0258b0b1730d5ce71357 (patch)
tree9cd058f880096974f5e367f7188a3186e5d76912 /dix/extension.c
parent3c23dec5962b8b81ae838fe0ee2c7b0a789f5386 (diff)
Rebase Security extension to use devPrivates for storing security state.
Diffstat (limited to 'dix/extension.c')
-rw-r--r--dix/extension.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dix/extension.c b/dix/extension.c
index 40e1373b6..46b7e14b4 100644
--- a/dix/extension.c
+++ b/dix/extension.c
@@ -131,6 +131,7 @@ AddExtension(char *name, int NumEvents, int NumErrors,
ext = (ExtensionEntry *) xalloc(totalExtensionSize);
if (!ext || !InitExtensionPrivates(ext))
return((ExtensionEntry *) NULL);
+ bzero(ext, totalExtensionSize);
ext->name = (char *)xalloc(strlen(name) + 1);
ext->num_aliases = 0;
ext->aliases = (char **)NULL;
@@ -180,9 +181,6 @@ AddExtension(char *name, int NumEvents, int NumErrors,
ext->errorBase = 0;
ext->errorLast = 0;
}
-#ifdef XACE
- XACE_STATE_INIT(ext->securityState);
-#endif
return(ext);
}