diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2009-06-01 13:10:18 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2009-06-01 13:10:18 +0000 |
commit | 083ed5b3e51c6380d6d239b9c4944d42a905bdac (patch) | |
tree | 0e1eeed03c958245eb132df603e8aa3cf59b3c49 /ext/snmp | |
parent | 102f76b3234f5e8c58ff2d6e7c3569ec581a16e9 (diff) | |
download | php-git-083ed5b3e51c6380d6d239b9c4944d42a905bdac.tar.gz |
Fixed bug #48273 (snmp*_real_walk() returns SNMP errors as values)
Diffstat (limited to 'ext/snmp')
-rw-r--r-- | ext/snmp/snmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 7a9d8eec79..3c49098726 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -666,7 +666,7 @@ retry: return; } else if (st == SNMP_CMD_WALK) { add_next_index_zval(return_value,snmpval); /* Add to returned array */ - } else if (st == SNMP_CMD_REALWALK) { + } else if (st == SNMP_CMD_REALWALK && vars->type != SNMP_ENDOFMIBVIEW && vars->type != SNMP_NOSUCHOBJECT && vars->type != SNMP_NOSUCHINSTANCE) { #ifdef HAVE_NET_SNMP snprint_objid(buf2, sizeof(buf2), vars->name, vars->name_length); #else |