NULL pointer dereference in RemoveHost()
This was reported downstream in https://bugzilla.redhat.com/2313799
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
tid = <optimized out>
ret = 0
pd = <optimized out>
old_mask = {__val = {0}}
ret = <optimized out>
#1 0x00007f7f72ea86d3 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:78
No locals.
#2 0x00007f7f72e4fc4e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
ret = <optimized out>
#3 0x00007f7f72e37902 in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x20, sa_sigaction = 0x20}, sa_mask = {__val = {94164031574203, 171515904, 140185365607758, 94164179526352, 8492695279594062592, 86, 86, 0, 0, 0, 0, 0, 0, 0, 94162862997504, 0}}, sa_flags = 1305953024, sa_restorer = 0x7f7f72ff74e0 <_IO_2_1_stderr_>}
#4 0x000055a445a710ea in OsAbort () at ../os/utils.c:1283
No locals.
#5 0x000055a445a7136e in AbortServer () at ../os/log.c:892
No locals.
#6 FatalError (f=<optimized out>) at ../os/log.c:1030
args = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x7ffc97e572a0, reg_save_area = 0x7ffc97e571d0}}
args2 = {{gp_offset = 8, fp_offset = 48, overflow_arg_area = 0x7ffc97e572a0, reg_save_area = 0x7ffc97e571d0}}
beenhere = 1
#7 0x000055a445a67832 in OsSigHandler (unused=<optimized out>, signo=11, sip=<optimized out>) at ../os/osinit.c:156
No locals.
#8 OsSigHandler (signo=11, sip=<optimized out>, unused=<optimized out>) at ../os/osinit.c:110
No locals.
#9 <signal handler called>
No locals.
#10 RemoveHost (client=0x0, family=5, length=<optimized out>, pAddr=0x55a44e78f8c0) at ../os/access.c:1448
rc = <optimized out>
len = <optimized out>
host = <optimized out>
prev = <optimized out>
#11 0x000055a4459a3d8c in RemoveHost (client=0x0, family=5, length=<optimized out>, pAddr=<optimized out>) at ../os/access.c:1421
rc = 0
len = <optimized out>
host = <optimized out>
prev = <optimized out>
#12 DisableLocalUser () at ../os/access.c:375
addr = 0x55a44e78f8c0 "localuser"
length = <optimized out>
#13 DisableLocalAccess () at ../os/access.c:299
No locals.
#14 CheckAuthorization (name_length=18, name=0x55a44e78a620 "MIT-MAGIC-COOKIE-1", data_length=16, data=0x55a44e78a634 "o\201PVID+\021\240\242\346\026\023!F\361", client=0x55a44e30a4b0, reason=0x7ffc97e58058) at ../os/auth.c:208
loadauth = 2
i = <optimized out>
buf = {st_dev = 84, st_ino = 257, st_nlink = 1, st_mode = 33152, st_uid = 12690, st_gid = 7006, __pad0 = 0, st_rdev = 0, st_size = 111, st_blksize = 4096, st_blocks = 8, st_atim = {tv_sec = 1726845683, tv_nsec = 664932688}, st_mtim = {tv_sec = 1726845682, tv_nsec = 361950375}, st_ctim = {tv_sec = 1726845682, tv_nsec = 361950375}, __glibc_reserved = {0, 0, 0}}
i = <optimized out>
buf = <optimized out>
lastmod = <optimized out>
loaded = <optimized out>
loadauth = <optimized out>
#15 ClientAuthorized (client=0x55a44e30a4b0, proto_n=18, auth_proto=0x55a44e78a620 "MIT-MAGIC-COOKIE-1", string_n=16, auth_string=0x55a44e78a634 "o\201PVID+\021\240\242\346\026\023!F\361") at ../os/connection.c:532
from = 0x0
family = 21924
fromlen = 1316550848
reason = 0x0
priv = 0x55a44e78a3c0
auth_id = <optimized out>
trans_conn = 0x55a44e78a310
priv = <optimized out>
from = <optimized out>
family = <optimized out>
fromlen = <optimized out>
auth_id = <optimized out>
reason = <optimized out>
trans_conn = <optimized out>
#16 ProcEstablishConnection (client=0x55a44e30a4b0) at ../dix/dispatch.c:3791
auth_proto = 0x55a44e78a620 "MIT-MAGIC-COOKIE-1"
auth_string = 0x55a44e78a634 "o\201PVID+\021\240\242\346\026\023!F\361"
reason = <optimized out>
prefix = <optimized out>
stuff = <optimized out>
#17 0x000055a44599e398 in Dispatch () at ../dix/dispatch.c:549
result = <optimized out>
client = 0x55a44e30a4b0
start_tick = 0
#18 0x000055a44591db86 in dix_main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at ../dix/main.c:275
i = <optimized out>
alwaysCheckForInput = {0, 1}
i = <optimized out>
alwaysCheckForInput = <optimized out>
pScreen = <optimized out>
pScreen = <optimized out>
remember_it = <optimized out>
pScreen = <optimized out>
#19 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at ../dix/stubmain.c:34
No locals.
Trivial fix to follow.