Core dump on latest cvs update
Matthew Chapman
z2232203 at student.unsw.edu.au
Mon Jul 27 09:45:41 GMT 1998
Hi Mike,
> Just updated this morning 7/25/98 (last time was Wed or Thur) and I
> now get a coredump from nmbd.
I cvs updated today 7/27/98 & had the same problem; the attached diff on
nmbd_browsesync.c should hopefully fix it (have sent a copy to
samba-bugs).
Matt.
--
Matt Chapman
E-mail: mattyc at cyberdude.com
-------------- next part --------------
--- nmbd_browsesync.old Mon Jul 27 17:20:18 1998
+++ nmbd_browsesync.c Mon Jul 27 18:52:33 1998
@@ -32,7 +32,7 @@
extern fstring global_myworkgroup;
/* This is our local master browser list database. */
-extern struct browse_cache_record *lmb_browserlist;
+extern struct ubi_dlList lmb_browserlist[];
static struct work_record *call_work;
static struct subnet_record *call_subrec;
@@ -205,7 +205,7 @@
void dmb_expire_and_sync_browser_lists(time_t t)
{
static time_t last_run = 0;
- struct browse_cache_record *browc;
+ ubi_dlNodePtr browc;
/* Only do this every 20 seconds. */
if (t - last_run < 20)
@@ -215,12 +215,12 @@
expire_lmb_browsers(t);
- for( browc = (struct browse_cache_record *)ubi_dlFirst( lmb_browserlist );
+ for( browc = ubi_dlFirst( lmb_browserlist );
browc;
- browc = (struct browse_cache_record *)ubi_dlNext( browc ) )
+ browc = ubi_dlNext( browc ) )
{
- if (browc->sync_time < t)
- sync_with_lmb(browc);
+ if ( ((struct browse_cache_record *)browc) -> sync_time < t) {
+ sync_with_lmb( (struct browse_cache_record *) browc ); }
}
}
More information about the samba-ntdom
mailing list