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>
This commit is contained in:
parent
75beadd766
commit
32fd57509c
@ -2895,6 +2895,9 @@ RecordExtensionInit(void)
|
||||
if (!RTContext)
|
||||
return;
|
||||
|
||||
if (!dixRegisterPrivateKey(RecordClientPrivateKey, PRIVATE_CLIENT, 0))
|
||||
return;
|
||||
|
||||
ppAllContexts = NULL;
|
||||
numContexts = numEnabledContexts = numEnabledRCAPs = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user