]> git.decadent.org.uk Git - ap-utils.git/blobdiff - lib/wep.c
Merge commit 'upstream/1.5'
[ap-utils.git] / lib / wep.c
index 4495a36b3d6e430075668fb8fb0d723e18b131eb..1cda0e8c3a0c619622973a8de51358fb02f3d1ab 100644 (file)
--- 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;
     }