[prev in list] [next in list] [prev in thread] [next in thread]
List: samba-cvs
Subject: svn commit: samba r7154 - in trunk/source/nsswitch: .
From: jerry () samba ! org
Date: 2005-05-31 20:35:06
Message-ID: 20050531203506.8E69F162ACA () lists ! samba ! org
[Download RAW message or body]
Author: jerry
Date: 2005-05-31 20:35:05 +0000 (Tue, 31 May 2005)
New Revision: 7154
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7154
Log:
we shoudl never add an fd_event struct twice (volker, i'm not sure this safety net is \
the right way to handle it) Modified:
trunk/source/nsswitch/winbindd.c
Changeset:
Modified: trunk/source/nsswitch/winbindd.c
===================================================================
--- trunk/source/nsswitch/winbindd.c 2005-05-31 20:12:34 UTC (rev 7153)
+++ trunk/source/nsswitch/winbindd.c 2005-05-31 20:35:05 UTC (rev 7154)
@@ -350,6 +350,15 @@
void add_fd_event(struct fd_event *ev)
{
+ struct fd_event *match;
+
+ /* only add unique fd_event structs */
+
+ for (match=fd_events; match; match=match->next ) {
+ if ( match == ev )
+ return;
+ }
+
DLIST_ADD(fd_events, ev);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic