chiark / gitweb /
Verify validity of session name when received from outside
[elogind.git] / src / login / logind-session.c
index a726fb1..2d22a68 100644 (file)
@@ -41,6 +41,7 @@ Session* session_new(Manager *m, const char *id) {
 
         assert(m);
         assert(id);
+        assert(session_id_valid(id));
 
         s = new0(Session, 1);
         if (!s)