summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-01-27 16:31:17 +0000
committerStef Walter <stef@memberwebs.com>2006-01-27 16:31:17 +0000
commit254df62aef0408c6b0e2a2904b4b7817a9cf86b8 (patch)
tree09028f6b1079243973ad551c877c5fcb16df3fff /daemon
parent308449c0d80f0473476edc7b6bea4f0691ab042b (diff)
Fix endless loop.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/snmp-engine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/snmp-engine.c b/daemon/snmp-engine.c
index e1bff30..0c7edf6 100644
--- a/daemon/snmp-engine.c
+++ b/daemon/snmp-engine.c
@@ -323,7 +323,7 @@ respond_req(rb_request* req, struct snmp_pdu* pdu, mstime when)
const char *msg = NULL;
switch(value->syntax)
{
- case SNMP_SYNTAX_NULL:
+ case SNMP_SYNTAX_NULL:
item->value = RB_UNKNOWN;
break;
case SNMP_SYNTAX_INTEGER:
@@ -541,7 +541,7 @@ resend_timer(mstime when, void* arg)
int i;
/* Search forwards through the scrolling window */
- for(i = (reqlow + 1) % nrequests; i <= reqhigh;
+ for(i = (reqlow + 1) % nrequests; i != reqhigh;
i = (i + 1) % nrequests)
{
if(requests[i].id)