[gdm] worker: don't blow assertion for unknown message types



commit d99311cde12df494c64f60c225a30bd4294efac3
Author: Ray Strode <rstrode redhat com>
Date:   Tue Sep 10 12:38:41 2013 -0400

    worker: don't blow assertion for unknown message types
    
    That's just rude.

 daemon/gdm-session-worker.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 9ad8e45..2364afd 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -787,7 +787,10 @@ gdm_session_worker_process_pam_message (GdmSessionWorker          *worker,
                 break;
 #endif
         default:
-                g_assert_not_reached ();
+                res = false;
+                g_warning ("Unknown and unhandled message type %d\n",
+                           query->msg_style);
+
                 break;
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]