You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
779 B

  1. From 525ff7ec3bafe9ccbf5802559e2664a25cf925e1 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Bastian=20M=C3=BCller?= <db1bm@gmx.de>
  3. Date: Sat, 12 Aug 2017 10:24:49 +0200
  4. Subject: [PATCH] Fix nullpointer dereference when leaving an unconnected
  5. window
  6. ---
  7. core/quassel-fe-level.c | 4 ++++
  8. 1 file changed, 4 insertions(+)
  9. diff --git a/core/quassel-fe-level.c b/core/quassel-fe-level.c
  10. index 3d69202..3382ddc 100644
  11. --- a/core/quassel-fe-level.c
  12. +++ b/core/quassel-fe-level.c
  13. @@ -62,6 +62,10 @@ static void sig_created(WINDOW_REC *winrec, int automatic) {
  14. return;
  15. }
  16. + if (!winrec->active_server) {
  17. + return;
  18. + }
  19. +
  20. CHANNEL_REC *_chanrec = channel_find(winrec->active_server, winrec->active->visible_name);
  21. if(_chanrec->chat_type != Quassel_PROTOCOL)
  22. return;
  23. --
  24. 2.19.1