diff options
author | okan | 2019-08-12 00:52:36 +0000 |
---|---|---|
committer | Wolfgang Müller | 2019-08-24 15:15:22 +0200 |
commit | ca09b5858e56efa301bb074f777310d2fd7b2386 (patch) | |
tree | 8ba5eb2c3cda48180540bf3d025604c3b45ee62d | |
parent | 64731a0375a8888b0c745b073eb5f947f56f677f (diff) | |
download | cwm-ca09b5858e56efa301bb074f777310d2fd7b2386.tar.gz |
Fix regression from r1.107 (lost a return); kettenis@ pointed out the high potential for a use-after-free (true!) where kn@ ran into the regression using an app that actually exercised the XGrabPointer() failure path.
Diffstat (limited to '')
-rw-r--r-- | menu.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: menu.c,v 1.107 2019/03/04 19:28:18 okan Exp $ + * $OpenBSD: menu.c,v 1.108 2019/08/12 00:52:36 okan Exp $ */ #include <sys/types.h> @@ -129,6 +129,7 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, const char *prompt, CurrentTime) != GrabSuccess) { XftDrawDestroy(mc.xftdraw); XDestroyWindow(X_Dpy, mc.win); + return(NULL); } XGetInputFocus(X_Dpy, &focuswin, &focusrevert); |