X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ap-utils.git;a=blobdiff_plain;f=lib%2Fwep.c;fp=lib%2Fwep.c;h=1cda0e8c3a0c619622973a8de51358fb02f3d1ab;hp=4495a36b3d6e430075668fb8fb0d723e18b131eb;hb=1aac4ac30a9a0d6cd2182013d2b3fd48b65ed2fd;hpb=5c77e013a46530bb3650f61d768dfed0dd3b72cb 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; }