diff options
author | 2017-07-19 20:12:54 +0000 | |
---|---|---|
committer | 2017-07-19 20:12:54 +0000 | |
commit | 6d8d770649cc823af30a6712a42c8614babacf30 (patch) | |
tree | b28cec313b14cae9b144a307f546fc0a900074a7 | |
parent | The first version of the edit program used to test csh, ksh and mail was based (diff) | |
download | wireguard-openbsd-6d8d770649cc823af30a6712a42c8614babacf30.tar.xz wireguard-openbsd-6d8d770649cc823af30a6712a42c8614babacf30.zip |
Fix previous commit; check the enter_ddb function pointer instead of the
"accessops" pointer before calling it.
-rw-r--r-- | sys/dev/wscons/wsdisplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c index 74102fa0962..5719481413d 100644 --- a/sys/dev/wscons/wsdisplay.c +++ b/sys/dev/wscons/wsdisplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsdisplay.c,v 1.128 2017/07/19 14:34:10 kettenis Exp $ */ +/* $OpenBSD: wsdisplay.c,v 1.129 2017/07/19 20:12:54 kettenis Exp $ */ /* $NetBSD: wsdisplay.c,v 1.82 2005/02/27 00:27:52 perry Exp $ */ /* @@ -2150,7 +2150,7 @@ wsdisplay_enter_ddb(void) sc = wsdisplay_console_device; if ((scr = sc->sc_scr[0]) == NULL) return; - if (sc->sc_accessops) { + if (sc->sc_accessops->enter_ddb) { (*sc->sc_accessops->enter_ddb)(sc->sc_accesscookie, scr->scr_dconf->emulcookie); } else { |