diff options
author | Rami Ylimäki <ext-rami.ylimaki@nokia.com> | 2010-06-18 12:40:58 +0300 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-06-18 13:54:13 -0700 |
commit | 32fd57509c3e06f63ac6b0ad607767fd2b688e5a (patch) | |
tree | 6c4fc24b57dc6424e7786260df607980eef59382 | |
parent | 75beadd766fed7b12a76e59e57c244e297c2d2cb (diff) |
record: Register client private to prevent crash.
Running the following command causes an assertion to fail:
cnee --record --request-range 1-127
3 in dixGetPrivateAddr at ../../include/privates.h:122
4 in dixGetPrivate at ../../include/privates.h:137
5 in dixLookupPrivate at ../../include/privates.h:167
6 in RecordInstallHooks at ../../record/record.c:911
7 in ProcRecordEnableContext at ../../record/record.c:2377
8 in ProcRecordDispatch at ../../record/record.c:2571
9 in Dispatch at ../../dix/dispatch.c:432
10 in main at ../../dix/main.c:289
Signed-off-by: Rami Ylimäki <ext-rami.ylimaki@nokia.com>
Reviewed-by: Oliver McFadden <oliver.mcfadden@nokia.com>
Reviewed-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | record/record.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/record/record.c b/record/record.c index 4117a5a02..06006f76d 100644 --- a/record/record.c +++ b/record/record.c @@ -2895,6 +2895,9 @@ RecordExtensionInit(void) if (!RTContext) return; + if (!dixRegisterPrivateKey(RecordClientPrivateKey, PRIVATE_CLIENT, 0)) + return; + ppAllContexts = NULL; numContexts = numEnabledContexts = numEnabledRCAPs = 0; |