summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2003-11-18 09:34:13 +0000
committermiod <miod@openbsd.org>2003-11-18 09:34:13 +0000
commita0a2b55f7417511f3568dfcb24887670a613303d (patch)
tree2ecfbe9ca960bfd066b9bacf9c6ee7676e7e1402
parent-mdoc flex(1) man page; (diff)
downloadwireguard-openbsd-a0a2b55f7417511f3568dfcb24887670a613303d.tar.xz
wireguard-openbsd-a0a2b55f7417511f3568dfcb24887670a613303d.zip
In ssh_checkintr(), better check pointers for NULL before they
are dereferenced. XXX Looks like there are duplicated sections in this function. This driver needs a huge cleanup anyway...
-rw-r--r--sys/arch/mvme88k/dev/ssh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/dev/ssh.c b/sys/arch/mvme88k/dev/ssh.c
index e3031e38262..fa8fee9c051 100644
--- a/sys/arch/mvme88k/dev/ssh.c
+++ b/sys/arch/mvme88k/dev/ssh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.16 2003/10/05 20:27:48 miod Exp $ */
+/* $OpenBSD: ssh.c,v 1.17 2003/11/18 09:34:13 miod Exp $ */
/*
* Copyright (c) 1994 Michael L. Hitch
@@ -1125,7 +1125,8 @@ ssh_checkintr(sc, istat, dstat, sstat0, status)
}
#endif
*status = -1;
- acb->xs->error = XS_SELTIMEOUT;
+ if (acb != NULL)
+ acb->xs->error = XS_SELTIMEOUT;
if (sc->nexus_list.tqh_first)
rp->ssh_dsp = sc->sc_scriptspa + Ent_wait_reselect;
return 1;