From 574788039f53fada4769731ea3fafe9710417b71 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 3 Jan 2000 03:17:16 +0000 Subject: added the unexpected packet database (unexpected.tdb) this means "nmblookup -S" now always works, even with broken servers the database stores all unexpected replies and these can be accessed by any client. while doing this I cleaned up a couple of functions, and put in place a better trn_id generator. in most places the code got quite a bit simpler due to the addition of simple helper functions. I haven't yet put the code in to take advantage of this for pdc replies - that will be next. Jeremys pdc finding code will then work :) (This used to be commit 280e6359d36c9bc8dcded302f15c3a1db8e3feeb) --- source3/web/diagnose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/web') diff --git a/source3/web/diagnose.c b/source3/web/diagnose.c index f29e380b93..f22fe0d9b2 100644 --- a/source3/web/diagnose.c +++ b/source3/web/diagnose.c @@ -35,7 +35,7 @@ BOOL nmbd_running(void) interpret_addr("127.0.0.1"), True)) != -1) { if ((ip_list = name_query(fd, "__SAMBA__", 0, True, True, loopback_ip, - &count,0)) != NULL) { + &count)) != NULL) { free(ip_list); close(fd); return True; -- cgit