Using an invalid user_id is the better way to force null bug

This commit is contained in:
zefie
2022-02-15 18:25:17 -05:00
parent 59ba999b5a
commit cf3e15412e

View File

@@ -1,11 +1,13 @@
var minisrv_service_file = true;
// null is the new demo/flash
if (ssid_sessions[socket.ssid]) {
if (ssid_sessions[socket.ssid].data_store.wtvsec_login) {
if (ssid_sessions[socket.ssid].data_store.wtvsec_login.ticket_store) {
if (ssid_sessions[socket.ssid].data_store.wtvsec_login.ticket_store.user_id != null) {
if (ssid_sessions[socket.ssid].data_store.wtvsec_login.ticket_store.user_id >= 0)
ssid_sessions[socket.ssid].switchUserID(null);
ssid_sessions[socket.ssid].switchUserID(-1);
}
}
}