[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] hobbitd core dumps when receiving a status message on a host not in bb-hosts (snapshot 18 March 2008)



On Wed, Mar 19, 2008 at 07:33:52PM -0000, Sebastian wrote:
> hobbitd core dumps when receiving a status message on a host not in bb-hosts
> (snapshot 18 March 2008).

Thanks for your detailed report. The attached patch should fix this.


Regards,
Henrik

--- lib/loadhosts.c	2008/03/02 12:12:50	1.76
+++ lib/loadhosts.c	2008/03/19 23:04:15
@@ -396,9 +396,9 @@
 
 		rbtKeyValue(rbhosts, hosthandle, &k1, &k2);
 		result = (namelist_t *)k2;
-	}
 
-	if ((result->notbefore > now) || (result->notafter < now)) return NULL;
+		if ((result->notbefore > now) || (result->notafter < now)) return NULL;
+	}
 
 	return result;
 }