X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2Fwep.c;h=1cda0e8c3a0c619622973a8de51358fb02f3d1ab;hb=16204dfc7715783c2ebdfb55fc44fb9344613a76;hp=4495a36b3d6e430075668fb8fb0d723e18b131eb;hpb=db905ff22705494136f504425cf0c75bb94cb81c;p=ap-utils.git diff --git a/lib/wep.c b/lib/wep.c index 4495a36..1cda0e8 100644 --- a/lib/wep.c +++ b/lib/wep.c @@ -76,7 +76,7 @@ void wep() varbinds[1].type = NULL_VALUE; varbinds[1].len_val = 0; print_help(WAIT_RET); - if (snmp(varbinds, 2, GET) <= 0) { + if (snmp(varbinds, 2, GET) < 2) { print_helperr(ERR_RET); goto exit; } @@ -236,7 +236,7 @@ void nwn_wep() varbinds[3].len_val = 0; print_help(WAIT_RET); - if (snmp(varbinds, 4, GET) <= 0) { + if (snmp(varbinds, 4, GET) < 4) { print_helperr(ERR_RET); goto exit; }