Date: Sun, 23 Nov 2025 14:37:37 +0100 (CET) Message-Id: <202511231337.5ANDbbFW084248@...2054...> From: Gert Doering In-Reply-To: <20251123120029.19736-1-gert@...1296...> References: <20251123120029.19736-1-gert@...1296...> Subject: [Openvpn-devel] [PATCH applied] Re: iservice: check for NULL pointer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Heiko Hund Cc: openvpn-devel@lists.sourceforge.net Trivial enough. Stared-at-code, and buildbot did the compile tests. I don't think this can ever happen in our context - search_domains comes from a single call chain, and is initialized here PWSTR wide_search_domains; wide_search_domains = utf8to16(search_domains); if (!wide_search_domains) { return ERROR_OUTOFMEMORY; } SetNrptExcludeRules(nrpt_key, ovpn_pid, wide_search_domains); free(wide_search_domains); .. but this change does not hurt, and "if (NULL) return FALSE" matches the function description "is 'domain' in 'list'? FALSE = no" just fine. Your patch has been applied to the master branch. commit 2e2ac94e9cf3d0bdb28339594c8236fa98784967 Author: Heiko Hund Date: Sun Nov 23 13:00:23 2025 +0100 iservice: check for NULL pointer Signed-off-by: Heiko Hund Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1393 Message-Id: <20251123120029.19736-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34611.html Signed-off-by: Gert Doering -- kind regards, Gert Doering