mirror of
https://github.com/simh/simh.git
synced 2026-03-03 10:06:27 +00:00
AltairZ80: 2SIO: Fix potential NULL pointer dereference.
This commit is contained in:
committed by
Mark Pizzolato
parent
3b229b1188
commit
a65d4227df
@@ -546,6 +546,10 @@ static t_stat m2sio_detach(UNIT *uptr)
|
||||
{
|
||||
M2SIO_CTX *xptr;
|
||||
|
||||
if (uptr->dptr == NULL) {
|
||||
return SCPE_IERR;
|
||||
}
|
||||
|
||||
sim_debug(VERBOSE_MSG, uptr->dptr, "detach.\n");
|
||||
|
||||
if (uptr->flags & UNIT_ATT) {
|
||||
|
||||
Reference in New Issue
Block a user