From 0435ada3a590f0f3f1e72b43eef94551aa02f168 Mon Sep 17 00:00:00 2001 From: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com> Date: Wed, 11 Feb 2026 15:22:38 -0600 Subject: [PATCH] Update np_web_api_internal.cpp (#4025) --- src/core/libraries/np/np_web_api_internal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/libraries/np/np_web_api_internal.cpp b/src/core/libraries/np/np_web_api_internal.cpp index 3d6c7de86..f598344c7 100644 --- a/src/core/libraries/np/np_web_api_internal.cpp +++ b/src/core/libraries/np/np_web_api_internal.cpp @@ -65,7 +65,7 @@ s32 createLibraryContext(s32 libHttpCtxId, u64 poolSize, const char* name, s32 t OrbisNpWebApiContext* findAndValidateContext(s32 libCtxId, s32 flag) { std::scoped_lock lk{g_global_mutex}; - if (libCtxId < 1 || libCtxId >= 0x8000) { + if (libCtxId < 1 || libCtxId >= 0x8000 || !g_contexts.contains(libCtxId)) { return nullptr; } auto& context = g_contexts[libCtxId];