[php-src] PR #17332: ext/snmp: Add null check for uninitialized SNMP session in security level setter

From: Date: Fri, 03 Jan 2025 09:40:47 +0000
Subject: [php-src] PR #17332: ext/snmp: Add null check for uninitialized SNMP session in security level setter
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30206@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17332 Author: evrenonur This change introduces a validation step in the netsnmp_session_set_sec_level function to ensure that the SNMP session is properly initialized before attempting to set the security level. If the session is not initialized, a zend_value_error is triggered, improving error handling and preventing potential crashes. Fixes: #17330

« previous php.git-pulls (#30206) next »