X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ap-utils.git;a=blobdiff_plain;f=src%2Fnwn_advanced.c;h=a41c1b58ef8b302229f0a8f1d3e769a9fa1b9d7c;hp=db68a788d6c0d76504ed579ff7c304c9132aebb9;hb=16204dfc7715783c2ebdfb55fc44fb9344613a76;hpb=17638f5bff2fddb825562f9242a364674aa5fb94 diff --git a/src/nwn_advanced.c b/src/nwn_advanced.c index db68a78..a41c1b5 100644 --- a/src/nwn_advanced.c +++ b/src/nwn_advanced.c @@ -45,7 +45,7 @@ void advanced() varbinds[1].oid = smtACKWindow; varbinds[1].len_oid = sizeof(smtACKWindow); print_help(WAIT_RET); - if (snmp(varbinds, 2, GET) <= 0) { + if (snmp(varbinds, 2, GET) < 2) { print_helperr(ERR_RET); goto exit; }