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); }