From 70e8b40fc7a68008ca7d2b0e75a21b7fd0c50f8d Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Sun, 25 Oct 2009 20:17:04 +0000 Subject: [PATCH] - Fixed bug #49990 (SNMP3 warning message about security level printed twice). --- NEWS | 2 ++ ext/snmp/snmp.c | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 65d7df6bdb..909db7d93b 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,8 @@ PHP NEWS - Fixed memory leak in extension loading when an error occurs on Windows. (Pierre) +- Fixed bug #49990 (SNMP3 warning message about security level printed twice). + (Jani) - Fixed bug #49855 (import_request_variables() always returns NULL). (Ilia, sjoerd at php dot net) - Fixed bug #49800 (SimpleXML allow (un)serialize() calls without warning). diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 8667619d81..e53990e5af 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -981,7 +981,6 @@ static int netsnmp_session_set_sec_level(struct snmp_session *s, char *level TSR s->securityLevel = SNMP_SEC_LEVEL_AUTHPRIV; return (0); } - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid security level: %s", level); } return (-1); } @@ -1000,8 +999,6 @@ static int netsnmp_session_set_auth_protocol(struct snmp_session *s, char *prot s->securityAuthProto = usmHMACSHA1AuthProtocol; s->securityAuthProtoLen = OIDSIZE(usmHMACSHA1AuthProtocol); return (0); - } else if (strlen(prot)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid authentication protocol: %s", prot); } } return (-1); @@ -1053,8 +1050,6 @@ static int netsnmp_session_set_sec_protocol(struct snmp_session *s, char *prot T return (0); #endif #endif - } else if (strlen(prot)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid privacy protocol: %s", prot); } } return (-1); -- 2.40.0