diff options
author | Jani Taskinen <jani@php.net> | 2009-10-25 20:17:04 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2009-10-25 20:17:04 +0000 |
commit | 64389f1b3112addac7465e2da6d93af233093ade (patch) | |
tree | a934c299b1e1fc8f25eb3e5d635b3e61401b5570 | |
parent | 64400b87241453ffe7eb126464bfa7757dcd5d05 (diff) | |
download | php-git-64389f1b3112addac7465e2da6d93af233093ade.tar.gz |
- Fixed bug #49990 (SNMP3 warning message about security level printed twice).
-rw-r--r-- | ext/snmp/snmp.c | 5 |
1 files changed, 0 insertions, 5 deletions
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); |