1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r12619: 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
This commit is contained in:
Stefan Metzmacher 2005-12-30 21:25:38 +00:00 committed by Gerald (Jerry) Carter
parent 37dece8304
commit d0dc0ffa31

View File

@ -479,6 +479,10 @@ NTSTATUS winsdb_record(struct winsdb_handle *h, struct ldb_message *msg, TALLOC_
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) {