X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ap-utils.git;a=blobdiff_plain;f=src%2Fnwn_latest.c;fp=src%2Fnwn_latest.c;h=bfc7a522a400f3186f58c6d301e83012d30014c9;hp=59d6b936eda8c04ab10b266e5d78b9cf75758f8f;hb=1aac4ac30a9a0d6cd2182013d2b3fd48b65ed2fd;hpb=5c77e013a46530bb3650f61d768dfed0dd3b72cb diff --git a/src/nwn_latest.c b/src/nwn_latest.c index 59d6b93..bfc7a52 100644 --- a/src/nwn_latest.c +++ b/src/nwn_latest.c @@ -80,7 +80,7 @@ void latest() varbinds[7].oid = oid_secLastErrorAddress; varbinds[7].len_oid = sizeof(oid_secLastErrorAddress); - if (snmp(varbinds, OID_NUM, GET) <= 0) { + if (snmp(varbinds, OID_NUM, GET) < OID_NUM) { print_help(ERR_RET); goto exit; }