svn commit: samba r12619 - in branches/SAMBA_4_0/source/nbt_server/wins: .

metze at samba.org metze at samba.org
Fri Dec 30 21:25:39 GMT 2005


Author: metze
Date: 2005-12-30 21:25:38 +0000 (Fri, 30 Dec 2005)
New Revision: 12619

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12619

Log:
make sure we don't return more than 25 addresses, as w2k3 crashes in that case

I still need to make sure we didn't write such records to our database...

metze
Modified:
   branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c


Changeset:
Modified: branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c
===================================================================
--- branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c	2005-12-30 21:12:15 UTC (rev 12618)
+++ branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c	2005-12-30 21:25:38 UTC (rev 12619)
@@ -479,6 +479,10 @@
 			goto failed;
 		}
 	}
+	if (num_values > 25) {
+		status = NT_STATUS_INTERNAL_DB_CORRUPTION;
+		goto failed;
+	}
 
 	rec->addresses     = talloc_array(rec, struct winsdb_addr *, num_values+1);
 	if (rec->addresses == NULL) {



More information about the samba-cvs mailing list