[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-580-g45726ee

Volker Lendecke vlendec at samba.org
Thu Mar 26 09:09:05 GMT 2009


The branch, v3-4-test has been updated
       via  45726ee52f766350023d85bc38cd803fdd8235a4 (commit)
      from  940c84fcc75085ee4f1180d4d2a8e718142e4eb6 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test


- Log -----------------------------------------------------------------
commit 45726ee52f766350023d85bc38cd803fdd8235a4
Author: Volker Lendecke <vl at samba.org>
Date:   Thu Mar 26 10:03:59 2009 +0100

    Avahi disables a timer by tv=NULL in avahi_timeout_update(), do not crash

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/avahi.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/avahi.c b/source3/lib/avahi.c
index ac9867a..269b329 100644
--- a/source3/lib/avahi.c
+++ b/source3/lib/avahi.c
@@ -207,6 +207,13 @@ static void avahi_timeout_update(AvahiTimeout *t, const struct timeval *tv)
 {
 	TALLOC_FREE(t->te);
 
+	if (tv == NULL) {
+		/*
+		 * Disable this timer
+		 */
+		return;
+	}
+
 	t->te = tevent_add_timer(t->ctx->ev, t, *tv, avahi_timeout_handler, t);
 	/*
 	 * No failure mode defined here


-- 
Samba Shared Repository


More information about the samba-cvs mailing list