From 254df62aef0408c6b0e2a2904b4b7817a9cf86b8 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 27 Jan 2006 16:31:17 +0000 Subject: Fix endless loop. --- daemon/snmp-engine.c | 4 ++-- 1 file 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) -- cgit v1.2.3