]> git.decadent.org.uk Git - ap-utils.git/blobdiff - lib/radio.c
Imported Upstream version 1.5~pre2
[ap-utils.git] / lib / radio.c
index d96137e46df3d4b1f2a28999f1cefada8c22c2d8..8db3d384d9a7d4c4acdca8a9201b5d98567b31e6 100644 (file)
@@ -108,7 +108,7 @@ void power()
     varbinds[1].type = NULL_VALUE;
 
     print_help(WAIT_RET);
-    if (snmp(varbinds, 2, GET) <= 0) {
+    if (snmp(varbinds, 2, GET) < 2) {
        print_helperr(ERR_RET);
        goto exit;
     }